Advisory

GHSA-8775-5hwv-wr6v

Also known as: CVE-2023-32325

Summary

Potential for cross-site scripting in PostHog-js

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-05-22 20:35 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

posthog-js

npm · All systems

Affected

  • introduced 0, fixed 1.57.2 (semver)

Fixed versions

1.57.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences