posthog-js
1.450.1 · 17 Nov 2026(Apache-2.0 AND MIT)28.2M / weekRepositoryHomepagenpmAtom feed
1.454.2 is the newest release of 1.x.
In short
1 security
- Security
Fixed requests being blocked by web application firewalls running the OWASP Core Rule Set (ModSecurity and others) for visitors whose session was sampled out of session replay. The
ph_<token>_posthogcookie stored that decision with a!prefix that rule 942190 flags as SQL injection. The decision now uses a plain letter, and this version removes old!values from the cookie on the next page load, whether or not replay starts on that page. Versions before 1.417.0 that load the unversioned recorder from the PostHog CDN stop writing new!values without upgrading, but only replace old ones on pages where the recorder loads. (2026-11-18)
Release note
Patch Changes
- Security
Fixed requests being blocked by web application firewalls running the OWASP Core Rule Set (ModSecurity and others) for visitors whose session was sampled out of session replay. The
ph_<token>_posthogcookie stored that decision with a!prefix that rule 942190 flags as SQL injection. The decision now uses a plain letter, and this version removes old!values from the cookie on the next page load, whether or not replay starts on that page. Versions before 1.417.0 that load the unversioned recorder from the PostHog CDN stop writing new!values without upgrading, but only replace old ones on pages where the recorder loads.
(2026-11-18)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.