The tainted candy was distributed in the Brant Rock area, police said. Authorities warned residents to throw away any Twizzlers candies and to inspect all other Halloween treats.
Authorities are investigating two packages of Twizzlers Twists that contained needles, police said.
Family members told WFXT that tainted Twizzlers were given to the 3-year-old son of a Boston police officer. They said no puncture holes were visible on the Twizzlers package, but added that the needle was small so they were unsure if they would have noticed a hole in the packaging.
The Marshfield incident is among other reports of needles found in Halloween candy this week.
A Florida mother said she found a needle in her child's Halloween candy.
And in New York, a child bit into a piece of candy and found a needle after trick-or-treating Wednesday.
The Cox Media Group National Content Desk contributed to this report.