CVE-2020-7773

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-7773
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-7773.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-7773
Aliases
Related
  • SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461
Published
2020-11-16T12:15:14Z
Modified
2025-01-08T07:43:47.653494Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

This affects the package markdown-it-highlightjs before 3.3.1. It is possible insert malicious JavaScript as a value of lang in the markdown-it-highlightjs Inline code highlighting feature. const markdownItHighlightjs = require("markdown-it-highlightjs"); const md = require('markdown-it'); const reusltxss = md() .use(markdownItHighlightjs, { inline: true }) .render('console.log(42){.">js}'); console.log(reusltxss);

References

Affected packages

Git / github.com/valeriangalliat/markdown-it-highlightjs

Affected ranges

Type
GIT
Repo
https://github.com/valeriangalliat/markdown-it-highlightjs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.0.0
v1.1.0
v1.1.1
v1.1.2

v2.*

v2.0.0

v3.*

v3.1.0
v3.2.0
v3.3.0