Security readout for executives and security teams
Plain-English summary
CVE-2020-7773 is an XSS flaw in markdown-it-highlightjs before 3.3.1. If an application renders untrusted Markdown using its inline code highlighting feature, a malicious language value can inject JavaScript into the rendered page.
Executive priority
Treat as a moderate-priority web application exposure. Patch promptly where user-generated Markdown is rendered, especially in customer portals, documentation systems, forums, or internal knowledge tools containing sensitive data.
Technical view
The issue is in markdown-it-highlightjs inline highlighting. The lang value for inline code can be handled unsafely, enabling script injection in rendered HTML. The CVSS 3.1 score is 6.5 with network attack vector, low complexity, no privileges, and required user interaction.
Likely exposure
Exposure is most likely in Node.js applications that use markdown-it-highlightjs before 3.3.1 and render user-controlled Markdown with inline highlighting enabled. Applications that do not use this package or do not render untrusted Markdown through that feature are less likely exposed.
Exploitation context
The source bundle does not show active exploitation, and KEV is false. Exploitation requires a victim to view rendered malicious Markdown in a vulnerable application. The main business risk is browser-side data exposure through XSS.
Researcher notes
The evidence identifies a vulnerable package boundary, feature condition, and referenced fix discussion. CWE is not listed in the bundle. No source here confirms weaponized public exploitation or broader affected products beyond markdown-it-highlightjs.
Mitigation direction
- Upgrade markdown-it-highlightjs to version 3.3.1 or later.
- Prioritize apps rendering user-submitted Markdown content.
- If upgrade is delayed, review vendor guidance before relying on compensating controls.
- Avoid rendering untrusted Markdown through vulnerable inline highlighting paths.
Validation and detection
- Inventory direct and transitive uses of markdown-it-highlightjs.
- Confirm deployed versions are 3.3.1 or later.
- Identify routes rendering user-controlled Markdown with inline highlighting enabled.
- Review dependency lockfiles and built artifacts for stale vulnerable versions.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2020-7773 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 6.5 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C2.83.6Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
6.5MediumVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:P/RL:O/RC:C
Source materials
- CVE List V5 sourceCVE List V5
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITHIGHLIGHTJS-1040461CVE reference · x_refsource_MISC
- https://github.com/valeriangalliat/markdown-it-highlightjs/pull/14CVE reference · x_refsource_MISC
- https://github.com/valeriangalliat/markdown-it-highlightjs/blob/v3.3.0/index.js%23L52CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
