CVE-2026-86818
CVE-2026-86818 · fast-uri vulnerable to mailto header injection via percent-encoded field-name desynchronization
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 4.8 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Affected products and versions
fast-uri
- Versions
- ≥ 4.1.3, < 4.1.5: Affected (semver)
- 4.1.5: Not affected (semver)
Update to 4.1.5
node-ajv Debian:13
- Versions
- 8.12.0~ds+~2.1.1-5
- 8.17.1~ds+~3.0.1+~3.1.0-1
- 8.17.1~ds+~3.0.1+~3.1.0-2
- 8.17.1~ds+~3.0.1+~3.1.0-3
- 8.17.1~ds+~3.0.1+~3.1.0-4
- 8.18.0~ds+~cs6.1.1-1
- 8.18.0~ds+~cs6.1.1-2
- 8.20.0~ds+~cs6.1.3-1
- 8.20.0~ds+~cs7.1.2-1
- 8.20.0~ds+~cs7.1.3-1
- 8.20.0~ds+~cs7.1.3-2
- 8.20.0~ds+~cs7.1.3-3
- 8.20.0~ds+~cs7.1.4-1
- 8.20.0~ds+~cs7.1.5-1
- 8.20.0~ds+~cs7.1.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-ajv Debian:14
- Versions
- 8.12.0~ds+~2.1.1-5
- 8.17.1~ds+~3.0.1+~3.1.0-1
- 8.17.1~ds+~3.0.1+~3.1.0-2
- 8.17.1~ds+~3.0.1+~3.1.0-3
- 8.17.1~ds+~3.0.1+~3.1.0-4
- 8.18.0~ds+~cs6.1.1-1
- 8.18.0~ds+~cs6.1.1-2
- 8.20.0~ds+~cs6.1.3-1
- 8.20.0~ds+~cs7.1.2-1
- 8.20.0~ds+~cs7.1.3-1
- 8.20.0~ds+~cs7.1.3-2
- 8.20.0~ds+~cs7.1.3-3
- 8.20.0~ds+~cs7.1.4-1
- 8.20.0~ds+~cs7.1.5-1
- Affected ranges
- ECOSYSTEM: < 8.20.0~ds+~cs7.1.6-1
Update to 8.20.0~ds+~cs7.1.6-1
fast-uri npm
- Affected ranges
- SEMVER: ≥ 4.1.3, < 4.1.5
Update to 4.1.5
node-ajv Ubuntu:18.04:LTS
- Versions
- 5.0.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-ajv Ubuntu:20.04:LTS
- Versions
- 6.10.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-ajv Ubuntu:22.04:LTS
- Versions
- 6.12.6-2
- 6.12.6-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-ajv Ubuntu:24.04:LTS
- Versions
- 6.12.6-3
- 8.12.0~ds+~2.1.1-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-ajv Ubuntu:26.10
- Versions
- 8.17.1~ds+~3.0.1+~3.1.0-4build1
- 8.20.0~ds+~cs6.1.3-1
- 8.20.0~ds+~cs7.1.2-1
- 8.20.0~ds+~cs7.1.3-1
- 8.20.0~ds+~cs7.1.3-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-ajv Ubuntu:26.04:LTS
- Versions
- 8.12.0~ds+~2.1.1-5
- 8.17.1~ds+~3.0.1+~3.1.0-2
- 8.17.1~ds+~3.0.1+~3.1.0-4build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published