Description
The gatsby-plugin-mdx plugin prior to versions 3.15.2 and 2.14.1 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-plugin-mdx package to the latest compatible version. Followings are version details:
Affected version(s): **>= 3.0.0, < 3.15.2 < 2.14.1** Patched version(s): **3.15.2 2.14.1**
References
Related Issues
- gatsby-transformer-remark has possible unsanitized JavaScript code injection - CVE-2023-22491
- Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin (GHSA-2h87-4q2w-v4hf) - CVE-2023-22621
- Joplin Vulnerable to Code Injection - CVE-2022-23340
- Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin - CVE-2023-22621
- Tags:
- npm
- gatsby-plugin-mdx
Anything's wrong? Let us know Last updated on January 27, 2023