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
- Regular Expression Denial of Service (ReDoS) in lodash (GHSA-29mw-wpgm-hmr9) - CVE-2020-28500
- CKEditor 5 cross-site scripting (XSS) vulnerability in the clipboard package - CVE-2025-58064
- Payload's SQLite adapter Session Fixation vulnerability (GHSA-26rv-h2hf-3fw4) - CVE-2025-4644
- http-proxy-middleware can call writeBody twice because "else if" is not used - CVE-2025-32996
- Tags:
- npm
- gatsby-transformer-remark
Anything's wrong? Let us know Last updated on January 23, 2023