CVE-2023-30548

Path traversal vulnerability in gatsby-plugin-sharp

MEDIUM
4.3
CVSS Score
Published: April 17, 2023 at 08:43 PM UTC
Updated: September 29, 2026 at 03:50 PM UTC
2 products affected across 1 vendorGatsby Plugin SharpGatsby

Using gatsby by gatsbyjs?

Get instant alerts when new vulnerabilities affect gatsby - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.3
Exploit prediction
EPSS 0.9%
SSVC
PoC

Description

gatsby-plugin-sharp is a plugin for the gatsby framework which exposes functions built on the Sharp image processing library. The gatsby-plugin-sharp plugin prior to versions 5.8.1 and 4.25.1 contains a path traversal vulnerability exposed when running the Gatsby develop server (`gatsby develop`). It should be noted that 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. Attackers exploiting this vulnerability will have read access to all files within the scope of the server process. A patch has been introduced in [email protected] and [email protected] which mitigates the issue by ensuring that included paths remain within the project directory. As stated above, by default gatsby develop is only exposed to the localhost 127.0.0.1. For those using the develop server in the default configuration no risk is posed. If other ranges are required, preventing the develop server from being exposed to untrusted interfaces or IP address ranges would mitigate the risk from this vulnerability. Users are non the less encouraged to upgrade to a safe version.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.25.15.0.0 ≤ v < 5.8.1
Affected range stops below 4.25.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.8.1, so it looks safe — our inference, not a vendor statement
Gatsby· Gatsbyjswordpress-plugin
60%
v < 4.25.1v < 5.8.1
Affected range stops below 4.25.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.8.1, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.3MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card