Corey Feldman was detained by TSA after attempting to bring a Taser onto an airplane.

The Goonies actor, 48, neglected to check in his taser before his flight out of LaGuardia Airport on Thursday, and was nearly arrested, according to TMZ.

Stun guns and shocking devices are not allowed on carry on bags, but are permitted by TSA in checked bags.

Corey Feldman was nearly arrested Thursday after attempting to bring a Taser onto an airplane (pictured in New York on Wednesday)

Feldman was detained by TSA as he went through a security checkpoint, and ultimately missed his flight, the site reports.

The actor was eventually allowed to fly with the taser, though had to purchase new luggage in order to check it in properly.

Feldman always travels with a taser, but had forgotten it was on him this time until it was too late, reports the site.

The Lost Boys actor will usually pack the taser in his checked baggage, and has previously flown with it to Canada and England without any problem.

Feldman has been promoting his new documentary My Truth: The Rape Of Two Corey as of late

Feldman has been promoting his new documentary My Truth: The Rape Of Two Corey as of late.

The actor says the documentary will expose the Hollywood pedophile ring he claims abused him and his late friend Corey Haim as children.

The former child star has long said both he and Haim were sexually assaulted as children in Hollywood.

The actor has been vowing to expose an alleged Hollywood pedophile ring for years.

Feldman says his new documentary - My Truth: The Rape of Two Coreys - will reveal the names of the people who victimized him and Haim.

The film, which has been beset with legal and funding issues, will only be shown once on his website on March 9 after no major distributor picked it up and it was reportedly turned down by Netflix because of possible legal ramifications.