Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-86818 EUVD-2026-78403GHSA-jvvf-x445-j334

fast-uri vulnerable to mailto header injection via percent-encoded field-name desynchronization

Published Sep 15, 2026 · Updated Sep 15, 2026 · Assigned by 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.

Affected products

VendorProductAffectedFixed
fast-uri fast-uri 4.1.3 – < 4.1.5 4.1.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-ajv 8.20.0~ds+~cs7.1.6-1 —
Debian 13 node-ajv No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-ajv No fix yet —
Ubuntu 26.04 LTS node-ajv No fix yet —
Ubuntu 24.04 LTS node-ajv No fix yet —
Ubuntu 22.04 LTS node-ajv No fix yet —
Ubuntu 20.04 LTS node-ajv No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS node-ajv No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm fast-uri >= 4.1.3, < 4.1.5 4.1.5 GHSA-jvvf-x445-j334

References