CVE-2026-6321

Source
https://cve.org/CVERecord?id=CVE-2026-6321
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6321.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-6321
Aliases
Downstream
Related
Published
2026-05-04T19:31:57.253Z
Modified
2026-07-12T03:54:39.119257506Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
fast-uri vulnerable to path traversal via percent-encoded dot segments
Details

fast-uri decoded percent-encoded path separators and dot segments before applying dot-segment removal in its normalize() and equal() functions. Encoded path data was treated like real slashes and parent-directory references, so distinct URIs could collapse onto the same normalized path. Applications that normalize or compare attacker-controlled URLs to enforce path-based policy can be bypassed, with a path that appears confined under an allowed prefix normalizing to a different location. Versions <= 3.1.0 are affected. Update to 3.1.1 or later.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6321.json",
    "cna_assigner": "openjs",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/fastify/fast-uri

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fast-uri
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "cpe": "cpe:2.3:a:openjsf:fast-uri:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.1.1"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.0.2
v1.*
v1.0.0
v1.0.1
v2.*
v2.0.0
v2.1.0
v2.2.0
v2.3.0
v2.3.1
v2.4.0
v3.*
v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4
v3.0.5
v3.0.6
v3.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6321.json"