docusaurus-plugin-content-gists
Affected
- introduced
0, fixed4.0.0(semver)
Fixed versions
4.0.0
Fix
- Fixed version
4.0.0npm install [email protected]
Advisory
Also known as: CVE-2025-53624
docusaurus-plugin-content-gists vulnerability exposes GitHub Personal Access Token
GitHub Personal Access Token Exposure in docusaurus-plugin-content-gists
Summary
docusaurus-plugin-content-gists versions prior to 4.0.0 are vulnerable to exposing GitHub Personal Access Tokens in production build artifacts when passed through plugin configuration options. The token, intended for build-time API access only, is inadvertently included in client-side JavaScript bundles, making it accessible to anyone who can view the website's source code.
Affected Versions
Patched Versions
Impact
When using the affected versions with the recommended configuration pattern:
plugins: [
[
'docusaurus-plugin-content-gists',
{
personalAccessToken: process.env.GITHUB_PERSONAL_ACCESS_TOKEN,
},
],
]
The GitHub Personal Access Token is included in the webpack bundle and exposed in production builds at:
/build/assets/js/main.[hash].jsThis allows malicious actors to:
Mitigation steps
Migration steps
npm install docusaurus-plugin-content-gists@^4.0.0personalAccessToken from your plugin configurationGH_PERSONAL_ACCESS_TOKEN is set in your build environmentCritical Basis: The source's own band: CRITICAL
0, fixed 4.0.0 (semver)4.0.0
4.0.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0