CVE-2021-32770 json
Basic-auth app bundle credential exposure in gatsby-source-wordpress
published 2021-07-15 5 y ago modified 2026-07-08 4 mo ago also GHSA-rqjw-p5vr-c695 , EUVD-2021-1490
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm gatsby-source-wordpress 4.0.8, 5.9.2
- gatsbyjs gatsby-source-wordpress 4.0.8, 5.9.2
Exploit prediction
1.41% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gatsbyjs/gatsby/security/advisories/GHSA-rqjw-p5vr-c695 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | gatsby-source-wordpress | <4.0.8 >=5.0.0, <5.9.2 |
4.0.8 5.9.2 |
Affected products
- gatsbyjs gatsby
Classification
References
-
github.com
/gatsbyjs/gatsby/security/advisories/GHSA-rqjw-p5vr-c695
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-32770
advisory
Sources
- CVE List CVE-2021-32770
- GitHub Advisory GHSA-rqjw-p5vr-c695
- NVD CVE-2021-32770
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.