LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32770: Basic-auth app bundle credential exposure in gatsby-source-wordpress

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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This issue can expose HTTP Basic Authentication credentials inside a Gatsby site's generated JavaScript bundle. The business risk is credential disclosure from a public website artifact, not site takeover by itself. It matters most for teams using gatsby-source-wordpress with basic auth values configured during builds.

Executive priority

Prioritize remediation for externally hosted Gatsby sites connected to WordPress using basic auth. Treat confirmed exposure as a credential incident requiring rotation and artifact cleanup.

Technical view

gatsby-source-wordpress before 4.0.8 and 5.9.2 can leak variables from the auth configuration into app.js at build time. The issue is CWE-200 information exposure with CVSS 7.5, affecting confidentiality. Users without basic authentication credentials initialized in gatsby-config.js are not affected.

Likely exposure

Exposure is likely limited to Gatsby builds using vulnerable gatsby-source-wordpress versions and configured basic auth credentials. Publicly deployed app.js bundles increase risk because leaked credentials may be reachable by unauthenticated visitors.

Exploitation context

The supplied sources do not show known active exploitation, and KEV is false. The risk comes from credentials being embedded in client-delivered build output, which can be reviewed by anyone able to access the site bundle.

Researcher notes

The advisory narrows impact to users initializing basic authentication credentials in gatsby-config.js. The provided evidence names patched versions and a cleanup sequence, but does not provide proof of exploitation or indicate additional affected products.

Mitigation direction

  • Upgrade gatsby-source-wordpress to 4.0.8, 5.9.2, or later.
  • Run gatsby clean, then rebuild and redeploy the site.
  • Rotate any credentials that may have been exposed in public bundles.
  • If upgrading is delayed, follow vendor guidance for manual app.js cleanup.

Validation and detection

  • Inventory Gatsby projects using gatsby-source-wordpress and identify plugin versions.
  • Review gatsby-config.js for auth configuration containing basic auth credentials.
  • Inspect deployed build artifacts for exposed auth variables in app.js.
  • Confirm rebuilt artifacts replaced older cached or CDN-hosted bundles.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32770 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-32770Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
gatsbyjsgatsby< 4.0.8, >= 5.0.0, < 5.9.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.