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

VectorAV: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

Weakness Enumeration

Related Identifiers

CVE-2021-32770
GHSA-RQJW-P5VR-C695

Affected Products

Gatsby-Source-Wordpress