GHSA-v39h-62p7-jpjc

Suggest an improvement
Source
https://github.com/advisories/GHSA-v39h-62p7-jpjc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-v39h-62p7-jpjc/GHSA-v39h-62p7-jpjc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v39h-62p7-jpjc
Aliases
  • CVE-2026-6322
Downstream
Related
Published
2026-05-08T19:13:01Z
Modified
2026-05-10T04:44:28.903255090Z
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 host confusion via percent-encoded authority delimiters
Details

Impact

fast-uri v3.1.1 and earlier decodes percent-encoded authority delimiters (%40 as @, %3A as :) inside the host component and serializes them back as raw characters. This changes the URI structure, turning a hostname into userinfo plus a different host.

For example, http://trusted.com%40evil.com/ normalizes to http://trusted.com@evil.com/, which reparses as host evil.com with userinfo trusted.com.

Applications that normalize untrusted URLs before host allowlist checks, redirect validation, or outbound request routing can be steered to a different authority than the original URL appeared to contain.

Patches

Upgrade to fast-uri >= 3.1.2.

Workarounds

None. Upgrade to the patched version.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-08T19:13:01Z",
    "cwe_ids": [
        "CWE-436"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2026-05-05T11:16:33Z"
}
References

Affected packages

npm / fast-uri

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-v39h-62p7-jpjc/GHSA-v39h-62p7-jpjc.json"
last_known_affected_version_range
"<= 3.1.1"