GHSA-x949-7cm6-fm6p

Suggest an improvement
Source
https://github.com/advisories/GHSA-x949-7cm6-fm6p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-x949-7cm6-fm6p/GHSA-x949-7cm6-fm6p.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-x949-7cm6-fm6p
Aliases
Published
2021-12-16T14:34:40Z
Modified
2025-01-08T10:42:07.452097Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Code Injection in md-to-pdf.
Details

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.

Database specific
{
    "nvd_published_at": "2021-12-10T20:15:00Z",
    "github_reviewed_at": "2021-12-14T14:31:35Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

npm / md-to-pdf

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.0.0