Tomorrow is Yesterday - S1-E20
Stupidity: The Enterprise is very concerned about John Christopher going back to earth and changing history, but at the same time he has free access to go anywhere in the ship, and all his questions are being answered.
Stupidity: When Sulu and the others were freezing on the planet's surface, a transporter malfunction interfered with their rescue. Kirk, Spock, etc., did not consider using the Enterprise's shuttle which could have flown to the planet's surface and rescued Sulu and the away crew. (00:30:00 - 00:35:00)
Space Seed - S1-E23
Stupidity: In sick bay, Khan wants to read the Enterprise's technical manuals, explaining to Kirk he was once an engineer. Kirk acquiesces, saying they are available to ANY patient on the viewing screen. Apparently Captain Kirk does not seem to mind total strangers (this time with Napoleonic complexes) reading detailed documents outlining the strengths and weaknesses of a Federation starship.
Stupidity: When Gary 7 learns that agents 201 and 347 were killed in an automobile accident, he must take over the mission and save the earth from nuclear war. However, their technology allows them to transport anywhere they want through the vault device. It makes no sense for both agents to drive to McKinley Rocket Base when they could have easily transported there.
Suggested correction: Good point, but it seems more likely that 201 and 347 were executing a careful plan that depended on their cover as normal humans acting normally. Using transporter technology risks discovery. Gary Seven only used the vault transporter as an emergency measure, missed being observed materializing by mere seconds, and was detected by a guard moments later. Same for Kirk and Spock.
Stupidity: Why, oh why, didn't Kirk bring a communicator with him when he beamed down and found himself on the fake Enterprise?
The Enterprise Incident - S3-E2
Stupidity: When the Romulan commander discovers the cloaking device has been stolen, it's clear someone from the Enterprise took it. This is one of the most important pieces of technology the Romulans have ever developed. Rather than take immediate action to retrieve it, she inexplicably allows Spock the right of statement, giving Scotty the time he needs to hook up the device and get away.
Stupidity: There are multiple episodes in which the Enterprise's mission of seeking out new life encounter civilizations with technology far above the Federation's, but it is never incorporated into their own.