Vulnerability library
Security checkJanuary 23, 2023

gatsby-transformer-remark has possible unsanitized JavaScript code injection

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-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

Could your website be exposed too?

SmartScanner can check your website for gatsby-transformer-remark has possible unsanitized JavaScript code injection and gives you actionable findings to investigate.

Start a free scan

Related Issues

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