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
- Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true` - CVE-2025-65944
- Regular Expression Denial of Service (ReDoS) in lodash (GHSA-29mw-wpgm-hmr9) - CVE-2020-28500
- Server-Side Request Forgery via /_image endpoint in Astro Cloudflare adapter - CVE-2025-58179
- CKEditor 5 cross-site scripting (XSS) vulnerability in the clipboard package - CVE-2025-58064
- Tags:
- npm
- gatsby-transformer-remark
Anything's wrong? Let us know Last updated on January 23, 2023