CVE-2021-32770

Basic-auth app bundle credential exposure in gatsby-source-wordpress

HIGH
7.5
CVSS Score
Published: July 15, 2021 at 06:30 PM UTC
Updated: June 17, 2026 at 03:53 AM UTC
2 products affected across 1 vendorGatsby Source WordPressGatsby

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
HIGH7.5
Exploit prediction
EPSS 1%

Description

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 [email protected] and [email protected] 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.

Affected

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

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

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

References (1)

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-200CWE-522

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