Berildocs GitHub

Memory cards

XSS survives when two parsers disagree

confidence: highupdated: 2026-11-24status: activewebxssparser

Claim#

A sanitizer, template engine or WAF reads the input with a different parser than the browser. The gap is the payload space.

Test#

Map the sanitizer and the sink. Try mXSS, namespace changes, comment tricks, attribute boundaries and encoding that normalizes late.

Proof#

Script execution in the target origin, with the exact input and browser.

Failure modes#

A payload that fires in an innerHTML test may not fire in the page. A CSP report without execution is not a finding.