New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

GHSA-q3j6-qgpj-74h6

GHSA: GHSA-q3j6-qgpj-74h6

CVE: CVE-2026-6321

Patch Available (36)

Summary

HIGH

fast-uri vulnerable to path traversal via percent-encoded dot segments

Details

Impact

fast-uri v3.1.0 and earlier decodes percent-encoded path separators (%2F) and dot segments (%2E) before applying dot-segment removal in normalize() and equal(). This makes encoded path data behave like real / and .., so distinct URIs collapse onto the same normalized path.

For example, http://example.com/public/%2e%2e/admin normalizes to http://example.com/admin, and equal() considers them the same URI.

Applications that normalize or compare attacker-controlled URLs to enforce path-based policy can be bypassed. A path that looks confined under an allowed prefix can normalize to a different location.

Patches

Upgrade to fast-uri >= 3.1.1, or if you are in the v2.x release line, v2.4.1

Workarounds

None. Upgrade to the patched version.

Metadata

Published:

5/8/2026

Modified:

9/10/2026

CVSS Vector:

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

EPSS - Exploit Prediction Scoring System

Probability that this vulnerability will be exploited in the wild in the next 30 days

Current Exploitation Probability

0.52%

41.3th percentile

Low Risk

As of 8/2/2026

EPSS scores are updated daily and represent the probability (0-100%) that a CVE will be exploited in the next 30 days. Higher scores indicate higher risk.

CWEs (Common Weakness Enumeration)

CWE-22

Improper Limitation of a Pathname to a Restricted Directory

Abstraction Level:

Base

Description:

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. (Roles: Common-Name, Attack-Focused, Attack-Focused)

Extended Description:

Many file operations are intended to take place within a restricted directory. By using special elements such as ".." and "/" separators, attackers can escape outside of the restricted location to access files or directories that are elsewhere on the system. One of the most common special elements is the "../" sequence, which in most modern operating systems is interpreted as the parent directory of the current location. This is referred to as relative path traversal. Path traversal also covers the use of absolute pathnames such as "/usr/local/bin" to access unexpected files. This is referred to as absolute path traversal.

Likelihood of Exploit:

High

Related Weaknesses:

CWE-706CWE-706CWE-668

Affected Packages (0)