gatsby-transformer-remark has possible unsanitized JavaScript code injection
- Severity:
- High
Description
The gatsby-transformer-remark plugin prior to versions 5.25.1 and 6.3.2 passes input through to the gray-matter npm package, which is vulnerable to JavaScript injection in its default configuration, unless input is sanitized.
Recommendation
Update the gatsby-transformer-remark package to the latest compatible version. Followings are version details:
Affected version(s): **< 5.25.1 >= 6.0.0, < 6.3.2** Patched version(s): **5.25.1 6.3.2**
References
Related Issues
- Unsanitized JavaScript code injection possible in gatsby-plugin-mdx - CVE-2022-25863
- i18next-locize-backend has URL Injection via Unsanitized Path Parameters - CVE-2026-41885
- jsPDF has PDF Injection in AcroFormChoiceField that allows Arbitrary JavaScript Execution - CVE-2026-24737
- jsPDF has a PDF Object Injection via Unsanitized Input in addJS Method - CVE-2026-25755
You might also like:
- Tags:
- npm
- gatsby-transformer-remark
Anything's wrong? Let us know Last updated on January 23, 2023


