Summary
A server-side request forgery vulnerability in Backstage TechDocs allows an authenticated attacker who controls a TechDocs source repository to influence documentation builds into retrieving data from network locations reachable by the build environment.
Retrieved content may then be incorporated into generated documentation and published, with exposure depending on the deployment topology, build mode, and protections around the target endpoint.
A server-side request forgery vulnerability in Backstage TechDocs allows an authenticated attacker who controls a TechDocs source repository to influence documentation builds into retrieving data from network locations reachable by the build environment.
Retrieved content may then be incorporated into generated documentation and published, with exposure depending on the deployment topology, build mode, and protections around the target endpoint.
Affected context
The issue occurs in Backstage deployments using the TechDocs Node plugin when MkDocs plugin configuration from a source repository is insufficiently validated before a documentation build. Exploitation depends on the attacker having authenticated access that permits control of a TechDocs repository, while the build environment must be able to reach a sensitive internal or external network location. Cloud metadata services requiring tokens or special headers are not directly accessible through the affected behavior.
The issue occurs in Backstage deployments using the TechDocs Node plugin when MkDocs plugin configuration from a source repository is insufficiently validated before a documentation build. Exploitation depends on the attacker having authenticated access that permits control of a TechDocs repository, while the build environment must be able to reach a sensitive internal or external network location. Cloud metadata services requiring tokens or special headers are not directly accessible through the affected behavior.
Exploit preconditions
- Attack surface: TechDocs documentation build processing and MkDocs plugin configuration
- Required access: Authenticated ability to control or modify a TechDocs source repository
- Trigger point: Documentation generation using attacker-influenced plugin configuration
- Network requirement: The build environment must be able to reach the targeted network location
- Why exploitation is possible: Improper validation permits configuration-controlled requests whose responses may be retrieved and published as documentation
- Attack surface: TechDocs documentation build processing and MkDocs plugin configuration
- Required access: Authenticated ability to control or modify a TechDocs source repository
- Trigger point: Documentation generation using attacker-influenced plugin configuration
- Network requirement: The build environment must be able to reach the targeted network location
- Why exploitation is possible: Improper validation permits configuration-controlled requests whose responses may be retrieved and published as documentation
Why this happens
The underlying flaw is insufficient validation of MkDocs plugin configuration before it is used during TechDocs builds. Configuration supplied through a repository can influence network retrieval behavior, allowing a build process to act as a server-side request client toward locations reachable from its network context.
This maps to CWE-918: Server-Side Request Forgery, because attacker-controlled input can cause the server-side build environment to issue requests to unintended destinations. The resulting content may be included in generated documentation, extending the impact from network access to possible data publication.
The underlying flaw is insufficient validation of MkDocs plugin configuration before it is used during TechDocs builds. Configuration supplied through a repository can influence network retrieval behavior, allowing a build process to act as a server-side request client toward locations reachable from its network context.
This maps to CWE-918: Server-Side Request Forgery, because attacker-controlled input can cause the server-side build environment to issue requests to unintended destinations. The resulting content may be included in generated documentation, extending the impact from network access to possible data publication.
Potential impact
- An attacker may retrieve data from reachable internal services
- Sensitive responses could be published through generated documentation
- The build environment could be used to probe network-accessible endpoints
- Internal service information may be exposed to documentation consumers
- Downstream systems could be affected if endpoint protections permit additional requests
- An attacker may retrieve data from reachable internal services
- Sensitive responses could be published through generated documentation
- The build environment could be used to probe network-accessible endpoints
- Internal service information may be exposed to documentation consumers
- Downstream systems could be affected if endpoint protections permit additional requests
General mitigation guidance
Mitigation generally focuses on reducing trust in repository-controlled build configuration and constraining outbound network access from documentation builders.
Common defensive patterns include:
- Validating MkDocs and plugin configuration against an explicit allowlist
- Restricting or disabling configuration features that permit arbitrary network retrieval
- Running TechDocs builds in isolated environments with minimal outbound connectivity
- Applying egress filtering, network segmentation, and destination allowlists
- Preventing generated documentation from automatically exposing sensitive build responses
- Running build workers with least privilege and separate credentials from production services
- Treating source repositories and their build configuration as untrusted input
Mitigation generally focuses on reducing trust in repository-controlled build configuration and constraining outbound network access from documentation builders.
Common defensive patterns include:
- Validating MkDocs and plugin configuration against an explicit allowlist
- Restricting or disabling configuration features that permit arbitrary network retrieval
- Running TechDocs builds in isolated environments with minimal outbound connectivity
- Applying egress filtering, network segmentation, and destination allowlists
- Preventing generated documentation from automatically exposing sensitive build responses
- Running build workers with least privilege and separate credentials from production services
- Treating source repositories and their build configuration as untrusted input
How teams detect issues like this
Organizations can look for this class of issue through:
- Static analysis and dependency rules that identify unvalidated network-capable plugin configuration
- Code review checks for repository-controlled URLs, fetchers, and build-time network access
- Policy enforcement requiring explicit outbound destination allowlists for documentation builders
- Network telemetry that identifies unexpected requests from TechDocs build workers
- Review of generated documentation for content originating from internal services or unexpected endpoints
Automated security review tools can help flag server-side request patterns and configuration paths that cross trust boundaries.
Organizations can look for this class of issue through:
- Static analysis and dependency rules that identify unvalidated network-capable plugin configuration
- Code review checks for repository-controlled URLs, fetchers, and build-time network access
- Policy enforcement requiring explicit outbound destination allowlists for documentation builders
- Network telemetry that identifies unexpected requests from TechDocs build workers
- Review of generated documentation for content originating from internal services or unexpected endpoints
Automated security review tools can help flag server-side request patterns and configuration paths that cross trust boundaries.

