CVE-2026-86818: 
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Identify a target application: Find a Node.js application using fast-uri 4.1.3 or 4.1.4 (e.g., via Fastify or ajv dependencies) that accepts untrusted mailto URIs, validates recipients on the initial parse, and then re-serializes and sends the URI to a mail client or outbound email path.
  2. Craft a malicious mailto URI: Construct a URI with percent-encoded reserved field names to bypass parse-time validation. For example: 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.
  3. Submit the URI to the application: Deliver the crafted URI as input to the application (e.g., via a web form, API parameter, or user-supplied link).
  4. Bypass initial validation: The application calls 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.
  5. Trigger serialization: The application re-serializes the parsed URI using fast-uri's serialize() function, which decodes the percent-encoded field names and re-emits them as literal to=, subject=, and body= fields.
  6. Achieve recipient injection: The serialized URI now contains 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).

Indicators of compromise

  • Network/Email: Outbound emails sent to unexpected recipients not present in the application's original recipient allowlist; emails with subjects or bodies that differ from what was validated or logged at parse time.
  • Logs: Application logs showing a validated recipient list that does not match the recipients in the actual sent email; discrepancies between logged parse().to values and the serialized URI passed to the mail client.
  • Input Data: Presence of percent-encoded reserved mailto field names in incoming URI strings (e.g., %74o=, %73ubject=, %62ody=, %54o=, %53ubject=, %42ody=) in application request logs or input validation logs (GitHub Advisory).

Mitigation and workarounds

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).

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

node-ajv

Fixed

sid

node-ajv: 8.20.0~ds+~cs7.1.6-1

Fixed

trixie

node-ajv

Affected

Ubuntu

Unknown

bionic (esm-apps)

node-ajv

Unknown

devel

node-ajv

Unknown

focal (esm-apps)

node-ajv

Unknown

jammy

node-ajv

Unknown

jammy (esm-apps)

node-ajv

Unknown

noble

node-ajv

Unknown

noble (esm-apps)

node-ajv

Unknown

resolute

node-ajv

Unknown

RHEL / CentOS

Affected

OpenShift

Not Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vqxq-2wvm-wwq5MEDIUM6.1
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-cw38-r4mr-qh2vMEDIUM6.1
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-hx39-7p87-p6mvMEDIUM4.7
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-43vv-qp67-mww8MEDIUM4.7
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-6r92-h7v8-c87rLOW2
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management