GHSA-5jgf-p345-68v8

Suggest an improvement
Source
https://github.com/advisories/GHSA-5jgf-p345-68v8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-5jgf-p345-68v8/GHSA-5jgf-p345-68v8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5jgf-p345-68v8
Aliases
Related
Published
2026-09-02T15:44:30Z
Modified
2026-09-03T16:25:59.089522632Z
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 skipped IDN canonicalization on scheme-relative references
Details

Impact

fast-uri canonicalizes a host to its ASCII form only when the input carries an explicit scheme. When resolve() resolves a scheme-relative reference (//host/) against a scheme-bearing base, it still emits the host verbatim even though the effective scheme is known, so re-parsing the resolved URI yields a different host than the one resolve() returned. An application that resolves an untrusted reference with fast-uri and then checks or routes on the resulting host can make a policy decision on one host and reach another. This is an incomplete-fix variant of CVE-2026-13676, whose IDN canonicalization was applied only to the scheme-bearing form.

Patches

Upgrade to fast-uri 2.4.5, 3.1.6, or 4.1.3. resolve() now canonicalizes the host once the effective scheme is known, and fails closed if a raw non-ASCII host cannot be converted.

Workarounds

Resolve scheme-relative references against a base that carries a scheme before performing any host-policy or origin check.

Database specific
{
    "nvd_published_at": "2026-08-24T10:16:40Z",
    "github_reviewed_at": "2026-09-02T15:44:30Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-436"
    ]
}
References

Affected packages

npm / fast-uri

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.4.2
Fixed
2.4.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-5jgf-p345-68v8/GHSA-5jgf-p345-68v8.json"

npm / fast-uri

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.1.3
Fixed
3.1.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-5jgf-p345-68v8/GHSA-5jgf-p345-68v8.json"

npm / fast-uri

Package

Affected ranges

Type
SEMVER
Events
Introduced
4.0.1
Fixed
4.1.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-5jgf-p345-68v8/GHSA-5jgf-p345-68v8.json"