CVE-2026-44437: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in angular angular-cli
The Angular SSR is a server-rise rendering tool for Angular applications. From 19.0.0-next.0 to before 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7, a vulnerability exists in the X-Forwarded-Prefix header processing logic within Angular SSR. The internal validation mechanism fails to properly account for URL-encoded characters, specifically dots (%2e%2e). This allows an attacker to bypass security filters by injecting encoded path traversal sequences that are later decoded and utilized by the application logic. When an Angular SSR application is configured to trust proxy headers and is deployed behind a proxy that forwards the X-Forwarded-Prefix header without prior sanitization, an attacker can provide a payload such as /%2e%2e/evil. This vulnerability is fixed in19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7.
AI Analysis
Technical Summary
This vulnerability in Angular SSR involves improper limitation of a pathname to a restricted directory (CWE-22) due to inadequate validation of the X-Forwarded-Prefix header. Specifically, the validation logic fails to decode and properly handle URL-encoded path traversal sequences (%2e%2e), enabling attackers to inject malicious path traversal payloads that bypass security filters. The flaw exists in Angular CLI versions prior to 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7. The vulnerability is relevant when Angular SSR trusts proxy headers and the proxy forwards the X-Forwarded-Prefix header without sanitization. The issue has been addressed in the specified fixed versions.
Potential Impact
An attacker can bypass security filters by injecting encoded path traversal sequences in the X-Forwarded-Prefix header, potentially causing the application to process unauthorized paths. This could lead to unauthorized access to restricted directories or resources within the Angular SSR application environment. The impact is limited to configurations where proxy headers are trusted and forwarded without sanitization. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in Angular CLI versions 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7 and later. Users should upgrade to these or newer versions to remediate the issue. If upgrading is not immediately possible, ensure that proxies do not forward unsanitized X-Forwarded-Prefix headers or disable trusting proxy headers in Angular SSR configurations. Patch status is not explicitly confirmed in vendor advisories, so verify the upgrade versions against official Angular release notes for confirmation.
CVE-2026-44437: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in angular angular-cli
Description
The Angular SSR is a server-rise rendering tool for Angular applications. From 19.0.0-next.0 to before 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7, a vulnerability exists in the X-Forwarded-Prefix header processing logic within Angular SSR. The internal validation mechanism fails to properly account for URL-encoded characters, specifically dots (%2e%2e). This allows an attacker to bypass security filters by injecting encoded path traversal sequences that are later decoded and utilized by the application logic. When an Angular SSR application is configured to trust proxy headers and is deployed behind a proxy that forwards the X-Forwarded-Prefix header without prior sanitization, an attacker can provide a payload such as /%2e%2e/evil. This vulnerability is fixed in19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Angular SSR involves improper limitation of a pathname to a restricted directory (CWE-22) due to inadequate validation of the X-Forwarded-Prefix header. Specifically, the validation logic fails to decode and properly handle URL-encoded path traversal sequences (%2e%2e), enabling attackers to inject malicious path traversal payloads that bypass security filters. The flaw exists in Angular CLI versions prior to 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7. The vulnerability is relevant when Angular SSR trusts proxy headers and the proxy forwards the X-Forwarded-Prefix header without sanitization. The issue has been addressed in the specified fixed versions.
Potential Impact
An attacker can bypass security filters by injecting encoded path traversal sequences in the X-Forwarded-Prefix header, potentially causing the application to process unauthorized paths. This could lead to unauthorized access to restricted directories or resources within the Angular SSR application environment. The impact is limited to configurations where proxy headers are trusted and forwarded without sanitization. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in Angular CLI versions 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7 and later. Users should upgrade to these or newer versions to remediate the issue. If upgrading is not immediately possible, ensure that proxies do not forward unsanitized X-Forwarded-Prefix headers or disable trusting proxy headers in Angular SSR configurations. Patch status is not explicitly confirmed in vendor advisories, so verify the upgrade versions against official Angular release notes for confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-06T14:40:00.954Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04f25dcbff5d8610127f55
Added to database: 5/13/2026, 9:51:25 PM
Last enriched: 5/13/2026, 10:07:17 PM
Last updated: 5/14/2026, 6:46:39 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.