CVE-2026-86472
fast-uri is a dependency-free RFC 3986 URI parser for Node.js, used by Fastify and ajv. In versions before 2.4.7, from 3.0.0 through 3.1.7, and from 4.0.0 through 4.1.4, fast-uri folds the host to lowercase before it percent-decodes the host, so a percent-encoded uppercase octet such as %41 decodes to a literal A that is never folded. For a scheme-relative reference such as //host there is no scheme, so the host canonicalization that would normally repair this does not run, and parse, normalize, and equal then disagree on the same host. An application that makes a case-sensitive host decision on fast-uri output, for example a host allowlist or denylist that compares the parsed host or uses equal, can be steered past the check with a percent-encoded uppercase octet, and because hostnames are case-insensitive in DNS and HTTP the evading spelling still reaches the host the check meant to gate. The issue is fixed in fast-uri 2.4.7, 3.1.8, and 4.1.5, and users should upgrade to one of those versions or later. As a workaround, compare hosts case-insensitively by lowercasing the parsed host before any allowlist or denylist decision.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 4.8
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS probability
- 0.16%
- CWE
- CWE-178
- Published
- 2026-09-15
- Last modified
- 2026-09-15
Affected products
- fast-uri fast-uri
- fast-uri fast-uri
- fast-uri fast-uri
- fast-uri fast-uri
- fast-uri fast-uri
- fast-uri fast-uri
Weakness type
Related vulnerabilities
- CVE-2023-3545 — Chamilo LMS Htaccess File Upload Security Bypass
- CVE-2023-4759 — Improper handling of case insensitive filesystems in Eclipse JGit allows arbitrary file write
- CVE-2025-46701 — Apache Tomcat: Security constraint bypass for CGI scripts
- CVE-2026-43513 — Apache Tomcat: LockOutRealm treats user names as case-sensitive
- CVE-2025-67718 — Formio improperly authorized permission elevation through specially crafted request path
- CVE-2026-40453 — Apache Camel JMS, Apache Camel CoAP, Apache Camel Google PubSub: Incomplete fix for CVE-2025-27636 in non-HTTP HeaderFilterStrategies (camel-jms, camel-sjms, camel-coap, camel-google-pubsub) allows case-variant header injection
- CVE-2021-39155 — Authorization Policy Bypass Due to Case Insensitive Host Comparison
- CVE-2026-47323 — Apache Camel: Camel-CXF Message Header Injection via Missing Inbound Filtering