PT-2021-19918 · WordPress · Gatsby-Source-Wordpress
Mlgualtieri
·
Published
2021-07-15
·
Updated
2022-10-25
·
CVE-2021-32770
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
gatsby-source-wordpress versions prior to 4.0.8 and 5.9.2
Description
The gatsby-source-wordpress plugin leaks .htaccess HTTP Basic Authentication variables into the app.js bundle during build-time. This issue affects users who initialize basic authentication credentials in the gatsby-config.js. A patch has been introduced to mitigate the issue by filtering all variables specified in the
auth: { } section.Recommendations
For versions prior to 4.0.8, upgrade to gatsby-source-wordpress@4.0.8, run
gatsby clean followed by a gatsby build.
For versions prior to 5.9.2, upgrade to gatsby-source-wordpress@5.9.2, run gatsby clean followed by a gatsby build.
As a temporary workaround, consider manually editing the app.js file post-build to remove leaked credentials.Exploit
Fix
Information Disclosure
Insufficiently Protected Credentials
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gatsby-Source-Wordpress