GitHub Advisoryadvisory · npm
GHSA-8775-5hwv-wr6v Potential for cross-site scripting in PostHog-js
MEDIUM
Official page ↗
- Aliases
- CVE-2023-32325
- Ecosystem
- npm
- Packages
- posthog-js
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2023-05-22
Affected packages
• npm posthog-js: < 1.57.2 → fixed in 1.57.2
Description
Impact
Potential for cross-site scripting in `posthog-js`.
Patches
The problem has been patched in `posthog-js` version 1.57.2.
Workarounds
• This isn't an issue for sites that have a Content Security Policy in place.
• 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.
References
We will publish details of the vulnerability in 30 days as per our security policy.
Related
Alias · CVE (1)
- CVE-2023-32325 PostHog-js is a library to interface with the PostHog analytics tool. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/PostHog/posthog-js/security/advisories/GHSA-8775-5hwv-wr6v web
- https://nvd.nist.gov/vuln/detail/CVE-2023-32325 advisory
- https://github.com/PostHog/posthog-js/pull/630 web
- https://github.com/PostHog/posthog-js/commit/67e07eb8bb271a3a6f4aa251382e4d25abb385a0 web
- https://github.com/PostHog/posthog-js package