QID 983172

QID 983172: Nodejs (npm) Security Update for marked (GHSA-vfvf-mqq8-rwqc)

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.

Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.

  • CVSS V3 rated as High - 6.1 severity.
  • CVSS V2 rated as Medium - 4.3 severity.
  • Solution
    Customers are advised to refer to GHSA-vfvf-mqq8-rwqc for updates pertaining to this vulnerability.
    Vendor References

    CVEs related to QID 983172

    Software Advisories
    Advisory ID Software Component Link
    GHSA-vfvf-mqq8-rwqc marked URL Logo github.com/advisories/GHSA-vfvf-mqq8-rwqc