CVE-2026-110095
JSON

3.7low

fast-uri vulnerable to improper path equivalence in relative reference normalization

Severity
3.7low CVSS:3.1 by openjs
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openjs
Also known as
GHSA-xhq7-xmqj-769h

Description

fast-uri is a dependency-free RFC 3986 URI parser and serializer for Node.js. In versions before 2.4.8, from 3.0.0 through 3.1.8, and from 4.0.0 through 4.2.2, the normalize() and serialize() functions apply RFC 3986 dot-segment removal to the path of a relative-path reference, even though that algorithm is defined only for the merged target path during resolution, so a leading parent-directory segment can be dropped and a document-relative reference can become root-relative. An application that normalizes an attacker-supplied or user-supplied relative reference and then resolves it, or uses it as a cache, deduplication, or authorization key, can have the reference escape its intended directory and point at a different resource. The issue is fixed in fast-uri 2.4.8, 3.1.9, and 4.2.3, and users should upgrade to one of these versions or later. As a workaround, resolve a relative reference against its absolute base first and normalize the absolute result instead of normalizing the reference beforehand.

Affected

Product or packageVersionsReported by
fast-uri fast-uribefore 2.4.8, from 3.0.0 before 3.1.9, from 4.0.0 before 4.2.3
Not affected: 2.4.8, 3.1.9, 4.2.3
CVE List
fast-uri (npm)before 2.4.8, from 3.0.0 before 3.1.9, from 4.0.0 before 4.2.3GitHub Advisory Database

All scores

openjs3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-41

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

fast-uri is a dependency-free RFC 3986 URI parser and serializer for Node.js. In versions before 2.4.8, from 3.0.0 through 3.1.8, and from 4.0.0 through 4.2.2, the normalize() and serialize() functions apply RFC 3986 dot-segment removal to the path of a relative-path reference, even though that algorithm is defined only for the merged target path during resolution, so a leading parent-directory segment can be dropped and a document-relative reference can become root-relative. An application that normalizes an attacker-supplied or user-supplied relative reference and then resolves it, or uses it as a cache, deduplication, or authorization key, can have the reference escape its intended directory and point at a different resource. The issue is fixed in fast-uri 2.4.8, 3.1.9, and 4.2.3, and users should upgrade to one of these versions or later. As a workaround, resolve a relative reference against its absolute base first and normalize the absolute result instead of normalizing the reference beforehand.

GitHub Advisory Database
Impact

fast-uri's normalize() and serialize() apply RFC 3986 dot-segment removal (remove_dot_segments) to the path of a relative-path reference. RFC 3986 section 5.2.4 defines that algorithm only for the merged target path during resolution, not for the reference itself, so applied to the reference it drops leading .. segments and can turn a document-relative reference into a root-relative one.

For example, normalize('a/../b') returns /b and normalize('../x') returns x, so resolve(base, normalize(ref)) points at a different resource than resolve(base, ref), and equal() treats distinct references as the same.

Applications that normalize attacker-supplied or user-supplied relative references and then resolve them, or use them as cache, deduplication, or authorization keys, can have a reference escape its intended directory and point at a different resource.

Patches

Upgrade to fast-uri 2.4.8, 3.1.9, or 4.2.3.

Workarounds

Do not normalize a relative reference before resolving it. Resolve it against the absolute base first, then normalize the absolute result.

References

https://github.com/fastify/fast-uri/security/advisories/GHSA-xhq7-xmqj-769hweb
https://cna.openjsf.org/security-advisories.htmlweb
https://nvd.nist.gov/vuln/detail/CVE-2026-110095advisory
https://github.com/fastify/fast-uri/commit/048bbd0a252971be86d6579f0dfc87f8de5b9c47web
https://github.com/fastify/fast-uri/commit/52774a5c35df36b0bbe439cd4c12c3dc0e50e3b9web
https://github.com/fastify/fast-uri/commit/7c19f8b97ec51f1f20b4e3d9d5820cb8d5176058web
https://github.com/fastify/fast-uri/commit/9eb8759a9825c046f57f7f695f1944bc39b88abdweb
https://github.com/fastify/fast-uri/commit/acc5c5d60c4209571789496e1732468911c7e12aweb
https://github.com/fastify/fast-uri/commit/b110a3571c37dfcf9d1c72ce2e2e178c78d1a424web
https://github.com/fastify/fast-uripackage
https://github.com/fastify/fast-uri/releases/tag/v2.4.8web
https://github.com/fastify/fast-uri/releases/tag/v3.1.9web

Sources

SourceRecordLicence
CVE ListCVE-2026-110095 changed 2026-10-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-xhq7-xmqj-769h changed 2026-10-23CC-BY-4.0
NVDCVE-2026-110095 changed 2026-10-20Public domain