{"id":"CVE-2023-32325","aliases":["CVE-2023-32325","GHSA-8775-5hwv-wr6v"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting in PostHog-js","summary":"PostHog-js is a library to interface with the PostHog analytics tool. Versions prior to 1.57.2 have the potential for cross-site scripting. Problem has been patched in 1.57.2. Users are advised to upgrade. Users unable to upgrade should ensure that their Content Security Policy is in place.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PostHog-js is a library to interface with the PostHog analytics tool. Versions prior to 1.57.2 have the potential for cross-site scripting. Problem has been patched in 1.57.2. Users are advised to upgrade. Users unable to upgrade should ensure that their Content Security Policy is in place.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nPotential for cross-site scripting in `posthog-js`.\n\n### Patches\n\nThe problem has been patched in `posthog-js` version 1.57.2.\n\n### Workarounds\n\n- This isn't an issue for sites that have a Content Security Policy in place.\n- Using the HTML tracking snippet on PostHog Cloud always guarantees the latest version of the library – in that case no action is required to upgrade to the patched version.\n\n### References\n\nWe will publish details of the vulnerability in 30 days as per our [security policy](https://posthog.com/handbook/company/security#policies).","format":"markdown","source":"ghsa"}],"published":"2023-05-22T20:35:03.000Z","modified":"2026-09-10T03:50:01.254Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.57.2","status":"affected"}],"vendor":"PostHog","product":"posthog-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.57.2"}],"ecosystem":"npm","package":"posthog-js","purl":"pkg:npm/posthog-js","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.57.2"}],"vendor":"posthog","product":"posthog-js","cpe":"cpe:2.3:a:posthog:posthog-js:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/PostHog/posthog-js/security/advisories/GHSA-8775-5hwv-wr6v","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PostHog/posthog-js/commit/67e07eb8bb271a3a6f4aa251382e4d25abb385a0","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32325","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/PostHog/posthog-js/pull/630","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PostHog/posthog-js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-14T18:40:27.923Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-32325","url":"https://www.cve.org/CVERecord?id=CVE-2023-32325","licence":"CVE Terms of Use","modified":"2025-01-14T18:40:43.462Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8775-5hwv-wr6v","url":"https://github.com/advisories/GHSA-8775-5hwv-wr6v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:01.254Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-32325","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32325","licence":"Public domain","modified":"2026-06-17T05:58:34.573Z"}],"updatedAt":"2026-11-25T22:58:24.414Z","epss":{"score":0.00429,"percentile":0.39029,"date":"2026-12-01T12:00:22.000Z"}}