CVEBrief

Home / gatsbyjs / gatsby / CVE-2023-30548

CVE-2023-30548: is it exploited, and which versions of gatsbyjs gatsby are affected and fixed?

CVE-2023-30548 is a path traversal (reading or writing files outside the intended folder) vulnerability in gatsbyjs gatsby. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: gatsby-plugin-sharp from 5.0.0 before 5.8.1 and gatsby-plugin-sharp before 4.25.1 (GitHub advisory GHSA-h2pm-378c-pcxx). Fixed in 5.8.1 and 4.25.1 (GitHub advisory GHSA-h2pm-378c-pcxx). Severity: Medium (4.3, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:40 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 13:38 UTC
Affected
gatsby-plugin-sharp from 5.0.0 before 5.8.1 and gatsby-plugin-sharp before 4.25.1
GitHub advisory GHSA-h2pm-378c-pcxx
Fixed in
5.8.1 and 4.25.1
GitHub advisory GHSA-h2pm-378c-pcxx
Severity
Medium 4.3
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
0.89% in 30 days
higher than 60% of CVEs; FIRST, December 2, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2023-30548?

Path traversal vulnerability in gatsby-plugin-sharp

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.

From the CVE record by GitHub_M, last updated February 5, 2025, 20:34 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
gatsbyjsgatsby< 4.25.1
>= 5.0.0, < 5.8.1

As the CVE record by GitHub_M states it, last updated February 5, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmgatsby-plugin-sharp>= 5.0.0, < 5.8.15.8.1GHSA-h2pm-378c-pcxx
npmgatsby-plugin-sharp< 4.25.14.25.1GHSA-h2pm-378c-pcxx

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 20, 2023. Summary: Path traversal vulnerability in gatsby-plugin-sharp.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
gatsbyjsgatsby-plugin-sharpbefore 4.25.1application
gatsbyjsgatsby-plugin-sharpfrom 5.0.0 before 5.8.1application

NVD analysis (status Analyzed), last modified September 29, 2026, 15:50 UTC.

How severe is CVE-2023-30548?

ScoreVersionVectorSource
Medium 4.3CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NGitHub_M
Medium 4.3CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2023-30548 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, February 5, 2025)
EPSS
0.89% probability of exploitation activity in the next 30 days, percentile 60.5 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 12, 2023
Published
April 17, 2023, 20:43 UTC
CVE record updated
February 5, 2025, 20:34 UTC by GitHub_M
NVD
Analyzed, last modified September 29, 2026, 15:50 UTC
Last checked
CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:40 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect gatsby?

Every CVE in gatsby

Questions about CVE-2023-30548

Is CVE-2023-30548 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.89% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of gatsbyjs gatsby are affected by CVE-2023-30548?

gatsby-plugin-sharp from 5.0.0 before 5.8.1 and gatsby-plugin-sharp before 4.25.1, per the GitHub advisory GHSA-h2pm-378c-pcxx. The tables above give every range the sources list.

Which version fixes CVE-2023-30548?

5.8.1 and 4.25.1, per the GitHub advisory GHSA-h2pm-378c-pcxx. Check the vendor's advisory before you rely on it.

How severe is CVE-2023-30548?

Medium (4.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2023-30548?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.