CVE-2026-49030: Input Validation

Published Sep 13, 2026
·
Updated

pathe through 2.0.3 unconditionally normalizes backslash characters to forward slashes on all platforms, including POSIX systems where backslash is a valid filename character. This causes join(), resolve(), and normalize() to interpret backslash-separated dot notation sequences as directory traversal, diverging from Node.js path.posix behavior and enabling path traversal attacks that bypass common input validation in server-side applications. NOTE: the Supplier reports that "the behavior is documented, intentional, and identical in spirit to path.win32."

Other sources

Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none.

NVD

Affected Software

1 affected component
npm/path<=2.0.3

Event History

Sep 13, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·09:17 PM
Description

Frequently Asked Questions

1

Which applications are realistically exposed to traversal through this behavior?

Server-side applications using pathe on POSIX systems are exposed if they pass attacker-controlled path input to join(), resolve(), or normalize() and rely on backslashes being treated as literal filename characters or on validation that does not account for backslash-separated dot notation.

2

What does an attacker need to supply to exploit the issue?

The attacker needs control over a path value processed by pathe. Backslash-separated dot notation can be normalized as directory traversal, potentially bypassing input validation that expects POSIX path semantics.

3

Are POSIX deployments affected by default?

Yes. The reported behavior applies on all platforms, including POSIX systems, because pathe unconditionally converts backslashes to forward slashes. Impact still depends on whether untrusted path input reaches the affected path-handling functions.

4

What can be done if the application cannot immediately change its dependency?

Do not pass untrusted path values directly to pathe join(), resolve(), or normalize() where POSIX semantics are required. Reject or otherwise handle backslash characters before path processing, and enforce that the resolved path remains within the intended base directory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203