Advisory

GHSA-vfvf-mqq8-rwqc

Also known as: CVE-2016-10531

Summary

Sanitization bypass using HTML Entities in marked

Details

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&#x58document;alert(1)

Renders a valid link that when clicked will execute alert(1).

Recommendation

Update to version 0.3.6 or later.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-02-18 23:58 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

marked

npm · All systems

Affected

  • introduced 0, fixed 0.3.6 (semver)

Fixed versions

0.3.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences