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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.41%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-15T18:30:11.000Z
- Modified: 2026-07-08T06:29:24.203Z
- Also known as: GHSA-rqjw-p5vr-c695
- Weaknesses: CWE-200, CWE-522
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- gatsbyjs gatsby: < 4.0.8; >= 5.0.0, < 5.9.2
- gatsby-source-wordpress (npm): before 4.0.8; from 5.0.0 before 5.9.2
- gatsbyjs gatsby-source-wordpress: before 4.0.8; from 5.0.0 before 5.9.2

## Every score

- GitHub_M: 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`
- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2021-32770](https://www.cve.org/CVERecord?id=CVE-2021-32770), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-rqjw-p5vr-c695](https://github.com/advisories/GHSA-rqjw-p5vr-c695), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32770](https://nvd.nist.gov/vuln/detail/CVE-2021-32770), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32770 · Whole record: https://cve.day/CVE-2021-32770.json · Rebuilt by cve.day 2026-11-25T22:58:02.682Z
