CSACyber Security AuditWebbandflow
APIs Low

API Schema Exposure

Publicly exposing an API's full definition, handing attackers a complete list of endpoints and fields.

What it is

API schema exposure is when an API's complete definition, such as an OpenAPI document or GraphQL introspection, is reachable by anyone. This reveals every endpoint, parameter, and data field, including those meant for internal or administrative use. It saves an attacker the effort of discovering the API's structure.

Why it matters

A fully exposed schema removes the guesswork from attacking an API, revealing hidden and sensitive endpoints that should not be publicized.

How to fix it

Restrict access to API documentation and schemas in production, disable schema introspection where not needed, and ensure hidden endpoints are also protected by access control.

Related terms

References

← Back to the glossary