cve.bz

CVE-2021-32770 gatsbyjs gatsby-source-wordpress: Insufficiently Protected Credentials

7.5 highExploit referenceEPSS 1.4%Fix available

High (7.5) in gatsbyjs gatsby-source-wordpress. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in gatsby-source-wordpress 4.0.8, 5.9.2.

On this page
Gatsby is a framework for building websites. The gatsby-source-wordpress plugin prior to versions 4.0.8 and 5.9.2 leaks .htaccess HTTP Basic Authentication variables into the app.js bundle during build-time. Users who are not initializing basic authentication credentials in the gatsby-config.js are not affected. A patch has been introduced in gatsby-source-wordpress@4.0.8 and gatsby-source-wordpress@5.9.2 which mitigates the issue by filtering all variables specified in the `auth: { }` section. Users that depend on this functionality are advised to upgrade to the latest release of gatsby-source-wordpress, run `gatsby clean` followed by a `gatsby build`. One may manually edit the app.js file post-build as a workaround.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-522 Insufficiently Protected Credentials
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • gatsby-source-wordpress (npm): fixed in 4.0.8, 5.9.2

Ask an AI about this CVE

Show the promptExplain CVE-2021-32770 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32770?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32770?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32770 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gatsbyjs:gatsby-source-wordpressbefore 4.0.8
gatsbyjs:gatsby-source-wordpressfrom 5.0.0 before 5.9.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rqjw-p5vr-c695npmgatsby-source-wordpress<4.0.84.0.8
GHSA-rqjw-p5vr-c695npmgatsby-source-wordpress>=5.0.0 <5.9.25.9.2

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13), CWE-200 (59).

References

Check your stackJSON