I've been digging into API security incidents and research lately, and there's a consistent pattern: the specification itself is an attack surface. Not the API implementation the documentation of it. Here's what the evidence shows.
Exposed Swagger/OpenAPI Specs Are Actively Hunted
SANS Internet Storm Center tracks scanning activity against common spec paths. As of mid-2026, /swagger.json alone had logged over 32,000 requests from attackers, with /api/v2/swagger.json at 14,000+ and /swagger/v1/swagger.json at 13,000+. This isn't theoretical attackers are systematically probing for exposed specs because they know what's inside.
Why? A public Swagger file is essentially a directory listing for your API. It reveals endpoint paths, parameter names, expected data formats, and authentication mechanisms. Attackers don't need to fuzz blindly when you've handed them the blueprint.
Cloakwave detects API security issues at inception before your first line of code ships. Upload your OpenAPI spec and get a free security report in seconds.