Description
marked is an application that is meant to parse and compile markdown. Due to the way that marked 0.3.5 and earlier parses input, specifically HTML entities, it's possible to bypass marked's content injection protection (`sanitize: true`) to inject a `javascript:` URL. This flaw exists because `NNanything;` gets parsed to what it could and leaves the rest behind, resulting in just `anything;` being left.
Remediation
References
https://github.com/chjj/marked/pull/592
https://github.com/chjj/marked/pull/592/commits/2cff85979be8e7a026a9aca35542c470cf5da523
https://nodesecurity.io/advisories/101
Related Vulnerabilities
CVE-2020-7766 Vulnerability in npm package json-ptr
CVE-2020-9480 Vulnerability in maven package org.apache.spark:spark-network-common_2.12
CVE-2023-33510 Vulnerability in maven package org.jeecgframework.p3:jeecg-p3-biz-chat
CVE-2020-28282 Vulnerability in maven package org.webjars.npm:getobject
CVE-2021-41571 Vulnerability in maven package org.apache.pulsar:pulsar