
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-86818 is a mailto header injection vulnerability in the fast-uri Node.js library, caused by percent-encoded field-name desynchronization in its mailto scheme parser. It affects fast-uri versions 4.1.3 and 4.1.4 — the two releases that introduced the mailto scheme parser — and is fixed in version 4.1.5. The library is widely used as a dependency of Fastify and ajv. It carries a CVSS v3.1 base score of 4.8 (Medium) (GitHub Advisory, Red Hat).
The root cause is an encoding/interpretation conflict (CWE-172, CWE-436, CWE-838) in the mailto parser's field-name comparison logic. When parsing a mailto URI, the parser compares query field names (e.g., to, subject, body) against reserved names while the names are still percent-encoded, and only decodes them when storing as generic headers. As a result, a field name like %74o (percent-encoded form of to) is not recognized as the reserved to field at parse time, so it bypasses recipient validation; however, upon serialization, the decoded name to is re-emitted as a literal field, and a subsequent reparse treats it as a recipient. This parse-then-serialize roundtrip creates a desynchronization window exploitable by an attacker who controls the input URI (GitHub Advisory, Red Hat Bugzilla).
An unauthenticated attacker can craft a mailto URI containing percent-encoded reserved field names (e.g., %74o=attacker@evil.com, %73ubject=..., %62ody=...) that silently inject attacker-chosen email recipients and tamper with subject and body fields after a parse-serialize roundtrip. Applications that validate or log the recipient list from the initial parse and then pass the re-serialized URI to a mail client or outbound send path will unknowingly send email to unintended recipients with attacker-controlled content, without any anomaly visible in the raw input or initial validation logs. The availability impact is none, but both confidentiality (potential data leakage via email) and integrity (unauthorized email recipient injection) are affected (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Feedly). The EPSS score is approximately 0.0016 (0.16%), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity, as the attacker must control the mailto URI input and the application must follow the vulnerable parse-then-serialize pattern (GitHub Advisory).
mailto:legitimate@example.com?%74o=attacker@evil.com&%73ubject=Injected%20Subject&%62ody=Injected%20Body — where %74o encodes to, %73ubject encodes subject, and %62ody encodes body.parse() on the URI; fast-uri does not recognize %74o as the reserved to field, so parse().to shows only the legitimate recipient. Any allowlist or logging check passes.serialize() function, which decodes the percent-encoded field names and re-emits them as literal to=, subject=, and body= fields.to=attacker@evil.com as a visible field. When passed to a mail client or send path, the attacker's address is included as a recipient, and the injected subject/body are used — all without detection during the initial validation step (GitHub Advisory).parse().to values and the serialized URI passed to the mail client.%74o=, %73ubject=, %62ody=, %54o=, %53ubject=, %42ody=) in application request logs or input validation logs (GitHub Advisory).Upgrade fast-uri to version 4.1.5 or later, which fixes the percent-encoding comparison logic in the mailto parser so that reserved field names are recognized regardless of encoding (GitHub Advisory). As a workaround for applications that cannot immediately upgrade, do not act on a mailto URI that fast-uri has re-serialized without first percent-decoding all field names and re-validating the recipient, subject, and body fields against your allowlist. Alternatively, compare mailto field names case-insensitively after decoding before trusting parse().to, or perform recipient validation on the serialized output rather than only on the initial parse result (Red Hat Bugzilla).
The advisory was published by Matteo Collina (mcollina), a core maintainer of the Fastify project, with remediation review by Ulises Gascón (UlisesGascon), indicating prompt response from the fast-uri maintainer community (GitHub Advisory). Red Hat tracked the issue via Bugzilla with a CC list of over 100 engineers, reflecting broad awareness across the Red Hat ecosystem (Red Hat Bugzilla). No significant broader media coverage or notable public researcher commentary beyond the official advisory has been identified at this time.
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
node-ajv
devel
node-ajv
focal (esm-apps)
node-ajv
jammy
node-ajv
jammy (esm-apps)
node-ajv
noble
node-ajv
noble (esm-apps)
node-ajv
resolute
node-ajv
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."