Reflected cross-site scripting (XSS) In node-marked
Description
Sanitization bypass using HTML Entities in marked
Affected versions of marked are susceptible to a cross-site scripting vulnerability in link components when sanitize:true is configured.
Proof of Concept
This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted.
For example:
A link URI such as
javascript֍ocument;alert(1)
Renders a valid link that when clicked will execute alert(1).
Recommendation
Update to version 0.3.6 or later.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 11 | 0.3.6+dfsg-1 | ||
debian 12 | 0.3.6+dfsg-1 | ||
debian 14 | 0.3.6+dfsg-1 | ||
debian 13 | 0.3.6+dfsg-1 | ||
npm | 0.3.6 | ||
nuget | - |
Aliases
References