Vulnerability library
Security checkJanuary 27, 2023

Unsanitized JavaScript code injection possible in gatsby-plugin-mdx

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for Unsanitized JavaScript code injection possible in gatsby-plugin-mdx and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023