LiveActive security incident?Get immediate response
CVE Record

CVE-2021-23639: Remote Code Execution (RCE)

The package md-to-pdf before 5.0.0 are vulnerable to Remote Code Execution (RCE) due to utilizing the library gray-matter to parse front matter content, without disabling the JS engine.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

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.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

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.

description · low confidence lookup

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 lookup
cve · low confidence lookup

CVE-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
Vulnerability profileCVE Program record
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

Official CVE source material

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.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We 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.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2021-23639Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/amd-to-pdfunspecifiedListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.