{"id":"CVE-2025-53624","aliases":["CVE-2025-53624","GHSA-qf34-qpr4-5pph"],"related":[],"kind":"vulnerability","state":"published","title":"docusaurus-plugin-content-gists Exposes GitHub Personal Access Token","summary":"The Docusaurus gists plugin adds a page to your Docusaurus instance, displaying all public gists of a GitHub user. 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. This vulnerability is fixed in 4.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Docusaurus gists plugin adds a page to your Docusaurus instance, displaying all public gists of a GitHub user. 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. This vulnerability is fixed in 4.0.0.","source":"cvelist"},{"lang":"en","text":"## GitHub Personal Access Token Exposure in docusaurus-plugin-content-gists\n\n### Summary\n\ndocusaurus-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.\n\n### Affected Versions\n\n- All versions < 4.0.0\n\n### Patched Versions\n\n- Version 4.0.0 and later\n\n### Impact\n\nWhen using the affected versions with the recommended configuration pattern:\n\n```javascript\nplugins: [\n  [\n    'docusaurus-plugin-content-gists',\n    {\n      personalAccessToken: process.env.GITHUB_PERSONAL_ACCESS_TOKEN,\n    },\n  ],\n]\n```\n\nThe GitHub Personal Access Token is included in the webpack bundle and exposed in production builds at:\n- `/build/assets/js/main.[hash].js`\n\nThis allows malicious actors to:\n- Extract the GitHub Personal Access Token from the website's JavaScript files\n- Use the stolen token to access the token owner's GitHub account with the granted permissions\n- Potentially access private gists, repositories, or perform other actions depending on the token's scope\n\n## Mitigation steps\n\n  1. Immediately revoke access to the GitHub PAT that was used: https://github.com/settings/tokens\n\n### Migration steps\n\n  1. Update to version 4.0.0+: `npm install docusaurus-plugin-content-gists@^4.0.0`\n  3. Remove `personalAccessToken` from your plugin configuration\n  4. Ensure `GH_PERSONAL_ACCESS_TOKEN` is set in your build environment","format":"markdown","source":"ghsa"},{"lang":"es","text":"El complemento Docusaurus gists añade una página a tu instancia de Docusaurus que muestra todos los gists públicos de un usuario de GitHub. Las versiones de docusaurus-plugin-content-gists anteriores a la 4.0.0 son vulnerables a la exposición de tokens de acceso personal de GitHub en artefactos de compilación de producción al pasarlos a través de las opciones de configuración del complemento. El token, destinado únicamente al acceso a la API durante la compilación, se incluye accidentalmente en paquetes de JavaScript del lado del cliente, lo que lo hace accesible a cualquiera que pueda ver el código fuente del sitio web. Esta vulnerabilidad se corrigió en la versión 4.0.0.","source":"nvd"}],"published":"2025-07-09T21:08:14.595Z","modified":"2026-06-17T09:38:35.617Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 4.0.0","status":"affected"}],"vendor":"webbertakken","product":"docusaurus-plugin-content-gists","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.0"}],"ecosystem":"npm","package":"docusaurus-plugin-content-gists","purl":"pkg:npm/docusaurus-plugin-content-gists","source":"ghsa"}],"references":[{"url":"https://github.com/webbertakken/docusaurus-plugin-content-gists/security/advisories/GHSA-qf34-qpr4-5pph","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/webbertakken/docusaurus-plugin-content-gists/commit/8d4230b82412edb215ddfa9e609d178510a5fe31","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53624","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/webbertakken/docusaurus-plugin-content-gists","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-07-10T15:17:55.533Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-53624","url":"https://www.cve.org/CVERecord?id=CVE-2025-53624","licence":"CVE Terms of Use","modified":"2025-07-10T15:18:11.559Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qf34-qpr4-5pph","url":"https://github.com/advisories/GHSA-qf34-qpr4-5pph","licence":"CC-BY-4.0","modified":"2025-07-09T23:12:26.754Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-53624","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53624","licence":"Public domain","modified":"2026-06-17T09:38:35.617Z"}],"updatedAt":"2026-11-25T22:59:01.036Z","epss":{"score":0.02048,"percentile":0.8177,"date":"2026-12-01T12:00:22.000Z"}}