Résumé
fast-uri vulnerable to mailto header injection via percent-encoded field-name desynchronization
Détails de l’avis
Impact
fast-uri's mailto scheme parser compares each query field name to the reserved names (to, subject, body) while the name is still percent-encoded, and only percent-decodes it when storing it as a generic header. On serialize, the decoded name is re-emitted, so a field name such as %74o (percent-encoded to) is not recognized as a recipient at parse time (parse().to shows only the legitimate recipient) but materializes as a literal to= field after serialize(), and reparsing then treats it as a recipient. The same technique smuggles subject and body through %73ubject and %62ody.
An application that parses an untrusted mailto URI, makes a display, allowlist, or logging decision on parse().to, then re-serializes the result and passes the serialized string to a mail client or an outbound send path can gain an attacker-chosen recipient, subject, or body that was not visible when the recipient list was checked. A scanner inspecting the raw input for an extra to= sees nothing, because the injected field appears only after fast-uri serializes.
Patches
Upgrade to fast-uri 4.1.5.
Workarounds
Percent-decode and compare mailto field names case-insensitively before trusting parse().to, or re-check the recipient list on the serialized output rather than only on the initial parse, until upgrading.
Références
- https://github.com/advisories/GHSA-jvvf-x445-j334
- https://github.com/fastify/fast-uri/security/advisories/GHSA-jvvf-x445-j334
- https://nvd.nist.gov/vuln/detail/CVE-2026-86818
- https://github.com/fastify/fast-uri/commit/f40a88f33e684a46faec3f5b820bcbb1e85add64
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fast-uri/releases/tag/v4.1.5
Vulnérabilités liées
Tout Supply chain →- HIGHCVE-2026-100351
kin-openapi: ValidationHandler security-requirement bypass via encoded-path operation confusion
- MEDIUMGHSA-w253-m66g-rx24
Coraza: URL-encoded form Content-Type parameters bypass Coraza body inspection
- MEDIUMGHSA-3wr7-993q-jrff
Coraza: Multipart filename* (RFC 5987) charset restriction lets a decoy filename bypass FILES-based rules
- MEDIUMGHSA-g4qm-m288-5cp9
Coraza has Cookie Parser Confusion
- MEDIUMCVE-2026-107825
Coraza: ProcessURI silently drops QUERY_STRING and ARGS_GET on URI parse failure — defense-in-depth bypass for non-net/http integrations
- MEDIUMCVE-2026-104774
Coraza: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass