Preliminary research
Parse and Parse: MIME Validation Bypass to XSS via Parser Differential
Last synced: 5 December 2026.
Content-Type is a singleton field, but Chromium and Firefox coalesce it on commas and keep the last syntactically valid type, while MIME libraries split at the first semicolon and keep the first. So application/json;,text/html passes a server-side check as JSON yet renders as HTML despite nosniff; adding = satisfies parsers that demand a name-value parameter, and Chromium reading ( as a comment start hides it. 17 parsers are tabulated.
Preserved copies · Tang Cheuk Hei · Original publication ↗
Record
- Researcher
- Tang Cheuk Hei
- Published by
- Critical Thinking - Bug Bounty Podcast
- Date
- Topic
- XSS
In the archive
Related sources
- BlackFan's original Content-Type technique Code
Author not stated
External source · no preserved copy
Tags
This page is the archive's own catalogue record. The research is the work of Tang Cheuk Hei, first published at the original source. Preserved copies are kept so the citation survives its host.