Security readout for executives and security teams
Plain-English summary
CVE-2021-23639 is a critical remote code execution flaw in md-to-pdf before 5.0.0. If an exposed workflow converts attacker-controlled Markdown, the underlying front matter parsing can execute code, putting the host running conversion at risk.
Executive priority
Treat this as urgent where md-to-pdf processes user-supplied Markdown. Prioritize upgrade and exposure review before routine backlog work.
Technical view
md-to-pdf used gray-matter to parse front matter without disabling its JavaScript engine. The CVSS 3.1 score is 9.8, with network attack vector, low complexity, no privileges, no user interaction, and high confidentiality, integrity, and availability impact.
Likely exposure
Exposure is most likely in applications, CI jobs, documentation portals, or APIs that use md-to-pdf before 5.0.0 to process Markdown from untrusted or semi-trusted sources.
Exploitation context
The provided sources do not show CISA KEV listing or confirmed active exploitation. The risk is still severe because the vulnerable behavior is reachable through Markdown parsing in affected versions.
Researcher notes
Evidence identifies md-to-pdf before 5.0.0 and a gray-matter JavaScript engine parsing issue. No CWE, KEV evidence, or confirmed exploitation details are provided in the bundle.
Mitigation direction
- Upgrade md-to-pdf to version 5.0.0 or later.
- Do not process untrusted Markdown with affected md-to-pdf versions.
- Review vendor and project guidance for any additional hardening.
- Restrict conversion workloads to isolated, least-privileged environments.
Validation and detection
- Check SBOMs and lockfiles for md-to-pdf versions before 5.0.0.
- Identify services or jobs that convert externally supplied Markdown.
- Confirm production, CI, and developer tooling use patched versions.
- Verify no public route accepts Markdown into vulnerable conversion workflows.
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.
Execution behavior lookup
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
Open ATT&CK lookupCVE-2021-23639 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
- Critical
- CVSS
- 9.8 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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:N/S:U/C:H/I:H/A:H3.95.9Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
9.8CriticalVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source materials
- CVE List V5 sourceCVE List V5
- https://snyk.io/vuln/SNYK-JS-MDTOPDF-1657880CVE reference · x_refsource_MISC
- https://github.com/simonhaenisch/md-to-pdf/issues/99CVE reference · x_refsource_MISC
- https://github.com/simonhaenisch/md-to-pdf/commit/a716259c548c82fa1d3b14a3422e9100619d2d8aCVE 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.
