CVE-2023-32325: Cross-site scripting in PostHog-js

Published May 22, 2023
·
Updated

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.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/posthog-js<1.57.2
1.57.2
PostHog posthog-js<1.57.2

Event History

May 22, 2023
Advisory Published
08:35 PM
May 26, 2023
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2023-32325.

2

What is the impact of this vulnerability?

This vulnerability has the potential for cross-site scripting in `posthog-js`.

3

How can I fix this vulnerability?

To fix this vulnerability, update `posthog-js` to version 1.57.2 or later.

4

Are there any workarounds for this vulnerability?

Yes, you can mitigate this vulnerability by implementing a Content Security Policy.

5

What is the severity level of this vulnerability?

The severity level of this vulnerability is medium (6.1).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203