{"id":"CVE-2025-53624","aliases":["EUVD-2025-20874","GHSA-qf34-qpr4-5pph"],"status":"published","title":"docusaurus-plugin-content-gists Exposes GitHub Personal Access Token","description":"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.","severity":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.02048,"percentile":0.8138,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200"],"published":"2025-07-09T21:08:14Z","modified":"2026-10-28T02:30:38Z","exploits":[{"source":"nuclei","id":"CVE-2025-53624","title":"Docusaurus Gists Plugin \u003c 4.0.0 - GitHub Personal Access Token Exposure","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-53624.yaml"}],"fixes":[{"ecosystem":"npm","package":"docusaurus-plugin-content-gists","fixed_in":["4.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"docusaurus-plugin-content-gists","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"docusaurus-plugin-content-gists","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.0.0"}]}]}],"products":[{"vendor":"webbertakken","product":"docusaurus-plugin-content-gists"}],"references":[{"url":"https://github.com/webbertakken/docusaurus-plugin-content-gists/security/advisories/GHSA-qf34-qpr4-5pph","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/webbertakken/docusaurus-plugin-content-gists/commit/8d4230b82412edb215ddfa9e609d178510a5fe31","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53624","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-qf34-qpr4-5pph"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53624.json","tags":["advisory"]},{"url":"https://github.com/webbertakken/docusaurus-plugin-content-gists","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-53624","title":"docusaurus-plugin-content-gists Exposes GitHub Personal Access Token","description":"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.","status":"published","published":"2025-07-09T21:08:14.595Z","modified":"2025-07-10T15:18:11.559Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:32:49.180768Z"}],"euvd":[{"id":"EUVD-2025-20874","description":"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.","status":"published","published":"2025-07-09T21:08:14Z","modified":"2025-07-10T15:18:11Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:32:10.118111Z"}],"ghsa":[{"id":"GHSA-qf34-qpr4-5pph","title":"docusaurus-plugin-content-gists vulnerability exposes GitHub Personal Access Token","description":"## 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 \u003c 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","status":"published","published":"2025-07-09T22:40:06Z","modified":"2025-07-09T22:40:07Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:38:49.837727Z"}],"nvd":[{"id":"CVE-2025-53624","description":"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.","status":"published","published":"2025-07-09T21:15:27.953Z","modified":"2026-06-17T09:38:35.617Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:11:17.727956Z"}],"osv":[{"id":"CVE-2025-53624","title":"docusaurus-plugin-content-gists Exposes GitHub Personal Access Token","description":"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.","status":"published","published":"2025-07-09T21:08:14.595Z","modified":"2026-10-28T02:30:38.499086278Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:44:50.45326Z"},{"id":"GHSA-qf34-qpr4-5pph","title":"docusaurus-plugin-content-gists vulnerability exposes GitHub Personal Access Token","description":"## 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 \u003c 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","status":"published","published":"2025-07-09T22:40:06Z","modified":"2025-07-09T23:12:26.75453Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:46:54.40888Z"}]}}
