CVE-2021-32770
HIGH 7.5CVSS 3.1Basic-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.
- Published
- 15 Jul 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-522
- Also known as
- GHSA-rqjw-p5vr-c695
- Sources
- NVDJSONOSV GHSA-rqjw-p5vr-c695JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gatsbyjs | gatsby-source-wordpresscpe:2.3:a:gatsbyjs:gatsby-source-wordpress:*:*:*:*:*:node.js:*:* |
< 4.0.8 | 4.0.8 |
| NVD | gatsbyjs | gatsby-source-wordpresscpe:2.3:a:gatsbyjs:gatsby-source-wordpress:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.9.2 | 5.9.2 |
| OSV | npm | gatsby-source-wordpress | < 4.0.8 | 4.0.8 |
| OSV | npm | gatsby-source-wordpress | >= 5.0.0, < 5.9.2 | 5.9.2 |
References
- https://github.com/gatsbyjs/gatsby/security/advisories/GHSA-rqjw-p5vr-c695 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32770 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Jul 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Jul 2021)