Loading...
Skip to main content

CVE-2025-53624 — Vulnerability in docusaurus-plugin-content-gists...

CRITICAL

docusaurus-plugin-content-gists vulnerability exposes GitHub Personal Access Token

Published July 9, 2025Updated July 9, 2025Source: osv

Summary

## 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 - All versions < 4.0.0 ### Patched Versions - Version 4.0.0 and later ### Impact When using the affected versions with the recommended configuration pattern: ```javascript 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].js` This allows malicious actors to: - Extract the GitHub Personal Access Token from the website's JavaScript files - Use the stolen token to access the token owner's GitHub account with the granted permissions - Potentially access private gists, repositories, or perform other actions depending on the token's scope ## Mitigation steps 1. Immediately revoke access to the GitHub PAT that was used: https://github.com/settings/tokens ### Migration steps 1. Update to version 4.0.0+: `npm install docusaurus-plugin-content-gists@^4.0.0` 3. Remove `personalAccessToken` from your plugin configuration 4. Ensure `GH_PERSONAL_ACCESS_TOKEN` is set in your build environment

Advisory Timeline

  • First published July 9, 2025 (460 days ago).
  • Last revised July 9, 2025 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update docusaurus-plugin-content-gists to 4.0.0 or later
npm install docusaurus-plugin-content-gists@4.0.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
docusaurus-plugin-content-gists
npm
All versions4.0.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-200
    Information ExposureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-53624?
docusaurus-plugin-content-gists vulnerability exposes GitHub Personal Access Token This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2025-53624?
CVE-2025-53624 affects docusaurus-plugin-content-gists. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-53624 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-qf34-qpr4-5pph

Related CVEs

  • CVE-2026-107722
    CRITICAL

    fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

  • CVE-2026-108261
    CRITICAL

    TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies