CVE-2026-86818
published medium CVSS 3.1 · 4.8fast-uri vulnerable to mailto header injection via percent-encoded field-name desynchronization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fast-uri | — | fast-uri4.1.3 to < 4.1.5 (affected · semver) · 4.1.5 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
fast-uri is a dependency-free RFC 3986 URI parser for Node.js, used by Fastify and ajv, that added a mailto scheme parser in version 4.1.3. In versions 4.1.3 and 4.1.4, the mailto parser compares each query field name to the reserved names to, subject, and body while the name is still percent-encoded, and decodes it only when storing it as a generic header, so a percent-encoded spelling of a reserved field name is not recognized as that field at parse time but is re-emitted as the literal field name when the parsed URI is serialized. An application that validates, logs, or displays the recipient list from the first parse and then serializes the URI and sends it can silently gain an attacker-chosen recipient, and the subject and body fields can be smuggled across the same roundtrip. The issue is fixed in fast-uri 4.1.5, and users should upgrade to 4.1.5 or later. As a workaround, do not act on a mailto URI that fast-uri has re-serialized without first decoding and re-validating its recipient, subject, and body fields.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fast-uri | fast-uri | 4.1.3 to < 4.1.5 (affected · semver)4.1.5 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
2- CWE-172 CWE-172: Encoding Error
- CWE-436 CWE-436: Interpretation Conflict
References
2Provider assertions
2openjs · cna
fast-uri vulnerable to mailto header injection via percent-encoded field-name desynchronization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3af073eef6e510e46a26a30acd2fedfb5041450a73eed63bb3168f6ac9450918
- Ingested
- 23 Sep 2026, 09:37:28 UTC
- Source record
- Official CVE record