Lucene search
+L

29 matches found

Github Security Blog
Github Security Blog
added 2025/11/20 5:48 p.m.19 views

md-to-pdf vulnerable to arbitrary JavaScript code execution when parsing front matter

Summary A Markdown front-matter block that contains JavaScript delimiter causes the JS engine in gray-matter library to execute arbitrary code in the Markdown to PDF converter process of md-to-pdf library, resulting in remote code execution. Details md-to-pdf uses the gray-matter library to parse...

10CVSS8.8AI score0.00926EPSS
SaveExploits0References4Affected Software1
Positive Technologies
Positive Technologies
added 2025/11/20 12:00 a.m.24 views

PT-2025-47654

Name of the Vulnerable Software and Affected Versions md-to-pdf versions prior to 5.2.5 Description md-to-pdf is a command-line interface CLI tool used for converting Markdown files to PDF format, utilizing Node.js and a headless Chrome browser. A flaw exists in the way the tool handles Markdown...

10CVSS8.2AI score0.00926EPSS
SaveExploits0References20
OSV
OSV
added 2024/03/22 4:55 p.m.34 views

GHSA-R6VW-8V8R-PMP4 Server Side Template Injection (SSTI)

Summary Due to the unrestricted access to twig extension class from grav context, an attacker can redefine config variable. As a result, attacker can bypass previous patch. Details The twig context has a function declared called getFunction. php public function getFunction$name if...

8.8CVSS9.1AI score0.0122EPSS
SaveExploits1References4
Positive Technologies
Positive Technologies
added 2024/03/21 12:00 a.m.18 views

PT-2024-22272 · Grav · Grav

Name of the Vulnerable Software and Affected Versions: Grav versions prior to 1.7.45 Description: Grav is an open-source, flat-file content management system. The issue arises because Grav validates accessible functions through the Utils::isDangerousFunction function but does not impose...

8.8CVSS8.6AI score0.01382EPSS
SaveExploits1References12
Positive Technologies
Positive Technologies
added 2024/03/21 12:00 a.m.10 views

PT-2024-22274 · Grav · Grav

Name of the Vulnerable Software and Affected Versions: Grav versions prior to 1.7.45 Description: The issue arises from unrestricted access to the twig extension class from the grav context, allowing an attacker to redefine the escape function and execute arbitrary commands. This can be achieved ...

8.8CVSS8.6AI score0.01584EPSS
SaveExploits1References13
Prion
Prion
added 2021/12/10 8:15 p.m.35 views

Remote code execution

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

7.5CVSS9.7AI score0.05329EPSS
SaveExploits2References3Affected Software1
ATTACKERKB
ATTACKERKB
added 2021/12/10 8:00 p.m.5 views

CVE-2021-23639

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

9.8CVSS7.3AI score0.05329EPSS
SaveExploits2References4
Snyk
Snyk
added 2021/09/23 10:57 a.m.22 views

Remote Code Execution (RCE)

Overview md-to-pdf is a CLI tool for converting Markdown files to PDF. Affected versions of this package are vulnerable to Remote Code Execution RCE due to utilizing the library gray-matter to parse front matter content, without disabling the JS engine. PoC: bash //Before running poc.js: $ cat...

9.8CVSS7.3AI score0.05329EPSS
SaveExploits2References2
OSV
OSV
added 2021/04/13 8:15 p.m.6 views

CVE-2021-29440

Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the...

7.2CVSS6.3AI score0.30623EPSS
SaveExploits5References4
Rows per page
Query Builder