Dangers of spray foam in body panels?

Here's what my trunk looks like with the cardboard panels and no carpeting over top of them.. The cardboard flaps actually stick out into the trunk foor a good inch or so. It covers the openings between the rear quarter and the trunk floor. The carpet on the trunk floor is marine carpet, not glued down..

19..