gatsby-plugin-sharp@3.14.3 vulnerabilities

Wrapper of the Sharp image manipulation library for Gatsby plugins

Direct Vulnerabilities

Known vulnerabilities in the gatsby-plugin-sharp package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Information Exposure

gatsby-plugin-sharp is a low-level helper plugin generally used by other Gatsby plugins that exposes several image processing functions built on the Sharp image processing library.

Affected versions of this package are vulnerable to Information Exposure via local file inclusion in __file-code-frame or __original-stack-frame, when gatsby develop is in use and exposed to the internet.

NOTE: By default gatsby develop is only accessible via the localhost 127.0.0.1, and one would need to intentionally expose the server to other interfaces to exploit this vulnerability by using server options such as --host 0.0.0.0, -H 0.0.0.0, or the GATSBY_HOST=0.0.0.0 environment variable.

How to fix Information Exposure?

Upgrade gatsby-plugin-sharp to version 5.10.0 or higher.

<5.10.0
  • M
Information Exposure

gatsby-plugin-sharp is a low-level helper plugin generally used by other Gatsby plugins that exposes several image processing functions built on the Sharp image processing library.

Affected versions of this package are vulnerable to Information Exposure via path traversal, when running gatsby develop. By default this server is only accessible via the localhost - 127.0.0.1, and one would need to intentionally expose the server to other interfaces to exploit this vulnerability by using server options such as --host 0.0.0.0, -H 0.0.0.0, or the GATSBY_HOST=0.0.0.0 environment variable.

How to fix Information Exposure?

Upgrade gatsby-plugin-sharp to version 4.25.1, 5.8.1 or higher.

<4.25.1 >=5.0.0-next.0 <5.8.1