{"id":"CVE-2021-32770","published":"2021-07-15T18:30:11Z","modified":"2024-08-03T23:33:56Z","title":"Basic-auth app bundle credential exposure in gatsby-source-wordpress","vendor":"gatsbyjs","product":"gatsby","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01414,"percentile":0.73388,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/gatsbyjs/gatsby/security/advisories/GHSA-rqjw-p5vr-c695","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":14.68},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gatsbyjs","affectedVersions":[{"vendor":"gatsbyjs","product":"gatsby","versions":["< 4.0.8",">= 5.0.0, < 5.9.2"]}],"affected":[{"ecosystem":"npm","package":"gatsby-source-wordpress","vulnerableRanges":["<4.0.8",">=5.0.0, <5.9.2"],"patched":["4.0.8","5.9.2"],"from":["GHSA-rqjw-p5vr-c695"],"provenance":"source"}],"summary":{"text":"The gatsby-source-wordpress plugin in the Gatsby framework leaks HTTP Basic Authentication variables from the .htaccess configuration into the app.js bundle at build time, affecting sites that set basic auth credentials in gatsby-config.js. An attacker with network access can read the exposed credentials from the publicly served bundle without authentication or user interaction, with no special configuration required beyond the affected credential setup.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:38Z"},"euvd":{"id":"EUVD-2021-1490","exploited":false,"provenance":"source"}}