This reminds me of an episode of the old 60s series
Voyage to the Bottom of the Sea in which the Seaview recovered a space capsule that was infested by some kind of space plant that was apparently made up primarily of green pastic garbage bags strung together which tried to take over the submarine.
I see RoadKing Larry has mentioned the sequel.