They become dangerous because CI/CD platforms often hold pipeline secrets, build credentials, and deployment access in one place. A path traversal flaw can expose files or configuration data, while stored XSS can let an attacker act with an administrator’s browser session. Together, these issues can move an attacker from limited access to pipeline control and server compromise.
Why CI/CD turns familiar web flaws into pipeline compromise
CI/CD is not just another application tier. It is a control plane for source, builds, credentials, artifacts, and deployment. When path traversal reaches files on the runner or controller, the attacker may uncover pipeline configuration, tokens, or signing material. When stored XSS runs inside an admin console, the attacker can pivot through a trusted browser session into actions that affect builds and releases.
That is why the same flaws that might be “contained” in a normal web app can become a release-path compromise in a delivery system. Once an attacker can read sensitive files, alter job settings, or act in an operator session, the next step is often not data theft alone but pipeline tampering, malicious artifact publication, or deployment to production.
The danger is amplified by CI/CD pipeline exploitation case study, which shows how exposed directories and weak pipeline secret handling can combine into server takeover. In practice, the flaw is rarely just the bug itself, it is the trust placed in the surrounding build environment.
How path traversal and stored XSS become high impact in a delivery system
Path traversal becomes especially serious when the CI/CD platform stores workspace data, environment files, service credentials, or deployment configuration on disk. A successful read may reveal tokens used to pull source, push images, sign releases, or reach cloud infrastructure. Even a “read only” bug can therefore become a credential disclosure event if the exposed file set is broad enough.
Stored XSS is dangerous because CI/CD platforms are frequently administered through web consoles with broad reach. If attacker-controlled content is rendered in a privileged user’s browser, the malicious script can perform actions as that user, such as changing webhook targets, altering environment settings, approving jobs, or exposing secret values visible in the interface. The browser session becomes the bridge from web injection to operational control.
These weaknesses are especially costly when they appear in systems already designed to automate trust. CI/CD Pipeline Identity Security Guide is useful because it highlights how token scope, build trust, and publishing paths shape the blast radius once a console or runner is compromised. The same logic explains why a web flaw in CI/CD can outgrow its original surface area.
Why the blast radius often reaches the repository, runner, and cloud account
CI/CD systems usually sit between source control, artifact storage, cloud deployment, and external registries. That centrality means compromise can cascade. A stolen runner secret may let an attacker sign packages, modify infrastructure definitions, or deploy a backdoored build. A hijacked admin session may let them persist by changing automation rather than triggering an obvious one-off breach.
This is why the strongest failures in delivery pipelines are often chain reactions, not isolated incidents. If an attacker can combine disclosure from path traversal with privilege abuse from stored XSS, they may move from file read to token theft, then from token theft to repository tampering, and then to code or infrastructure compromise. The system’s value comes from its connectivity, and that same connectivity expands the attack path.
For readers tracking real-world abuse patterns, Shai Hulud npm malware campaign and GitHub Action tj-actions Supply Chain Attack both illustrate how secret exposure inside delivery tooling can spread quickly across repositories and downstream systems.
Risk and Threat Considerations
CI/CD environments concentrate trust, so a single web flaw can expose much more than a page or dashboard. Path traversal may reveal secrets, signing keys, or configuration files, while stored XSS can let an attacker act through a privileged operator context and change the delivery process itself.
Failure mechanism: The attacker uses file disclosure or browser-based session abuse to reach credentials, build settings, or deployment actions that were assumed to be reachable only by trusted operators.
Impact: The compromise can progress from limited web access to pipeline control, malicious artifact publication, deployment abuse, and broader server or cloud account compromise.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | CI/CD traversal and XSS can expose pipeline secrets and tokens. |
| NHI-05 — Overprivileged NHI | CI/CD tokens and service credentials often have broader access than needed. | |
| NHI-07 — Long-Lived Secrets | CI/CD compromise becomes worse when tokens and keys remain valid for long periods. | |
| Recommendation — Rotate exposed pipeline secrets and remove secret material from readable paths. Reduce pipeline credential scope and segment build and deploy permissions. Replace long-lived pipeline secrets with short-lived credentials and frequent rotation. | ||
| NIST SP 800-53 Rev 5 | SI-10 — Information Input Validation | Stored XSS prevention depends on validating and sanitizing untrusted content in consoles. |
| IA-5 — Authenticator Management | CI/CD compromise often hinges on abuse of secrets, tokens, and credential lifecycle. | |
| Recommendation — Validate and sanitize all user-controlled CI/CD inputs before rendering them. Manage pipeline credentials with strict issuance, rotation, and revocation. | ||
| OWASP ASVS | V1 — Encoding and Sanitization | Stored XSS in CI/CD consoles is prevented by safe output encoding and sanitization. |
| V14 — Data Protection | CI/CD platforms protect build secrets, tokens, and deployment material as sensitive data. | |
| V16 — Security Logging and Error Handling | CI/CD compromise needs logging to detect secret access and privileged console abuse. | |
| Recommendation — Encode and sanitize all untrusted content displayed in CI/CD interfaces. Protect pipeline secrets with least exposure and strong storage controls. Log administrative actions and secret-access events in pipeline systems. | ||
Practitioner Guidance
What to verify: Check whether the CI/CD platform stores secrets, tokens, or deployment credentials on disk, and confirm that web-rendered fields cannot execute in privileged consoles. If those conditions exist, treat the platform as a high-value target rather than a routine internal app.
Decision rule: If a traversal flaw can reach configuration, logs, or workspace files, prioritise secret rotation and exposure review before assuming the issue is “just read access.” If stored XSS exists in an admin path, treat session compromise and action forgery as the primary concern, not merely UI tampering.
What good looks like: Secret material is short-lived, scoped narrowly, and not broadly reusable across jobs or environments. Administrative actions are strongly authenticated, console content is safely handled, and the pipeline can be rebuilt or revoked without relying on a single long-lived token.
Practitioner takeaway: In CI/CD, web vulnerabilities are dangerous when they touch trust boundaries, credentials, or release authority, because the attacker’s real objective is usually not the page itself but control of what the pipeline can build and deploy.
Related resources from NHI Mgmt Group
- Where do path traversal flaws become especially dangerous in command tooling?
- Why does stored XSS become especially dangerous in forum and content management systems with backend sessions?
- Why do CI/CD automation accounts often become the easiest path to cloud escalation?
- Why do CI/CD secrets become so dangerous when a workflow runs untrusted code with elevated permissions?