fast-uri is vulnerable to Mailto Header Injection
48
Medium Risk
fast-uri's mailto: parser compares a query field's raw, still-encoded name against the literal strings to, subject, and body, so a percent-encoded or differently-cased spelling of those names skips the comparison. Such a field is instead placed into the generic headers object under its decoded name, letting an encoded to/subject/body field reach code that trusts headers as ordinary data while carrying a real recipient or subject value. An application that inspects parsed.to/parsed.subject/parsed.body to filter a mailto: link, but forwards headers unfiltered, can have a hidden recipient smuggled past the filter. The fix decodes and lowercases field names before classifying and serializing them.
You are affected if you are using a version that falls within the vulnerable range and you parse mailto: links and rely on the to, subject, or body fields to filter or validate untrusted input.
fast-uri is vulnerable to Mailto Header Injection in versions 4.1.3 - 4.1.4.
Upgrade the fast-uri library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.