posthog-js
1.450.1 · 17 Nov 2026(Apache-2.0 AND MIT)28.2M / weekRepositoryHomepagenpmAtom feed
Upgrading posthog-js From 1.442.0 to 1.454.2
52 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
- 1.451.1
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 by release
- Fixed
Updated DOMPurify from 3.4.13 to 3.4.18. (2026-11-23)
- Fixed
- Fixed
Stop heatmaps and dead clicks from sending interactions that happened while capturing was off, such as clicks before the visitor consented. (2026-11-23)
- Fixed
- New
Capture the Snapchat click ID as
sccidwhen the landing URL spells itScCidorSsCid. Whenmask_personal_data_propertiesis on, also maskScCid,SsCidandsscidin captured URLs, including landing URLs stored by older SDK versions. (2026-11-23)
- New
- Fixed
Stop sending replay debug properties on events captured while session replay is off (2026-11-23)
- Fixed
- Fixed
Name survey buttons by their visible text instead of a hard-coded English "Submit survey" label, so screen readers and voice control match the configured or translated button text. Tests that find the button by the name "Submit survey" need to use the visible button text or the
.form-submitclass instead. (2026-11-20)
- Fixed
- Fixed
Only attach the queue-size debug property while the queue is backed up:
$sdk_debug_retry_queue_sizeon web when requests are waiting to be retried, and$sdk_debug_pending_queue_sizeon React Native once the queue reachesflushAt(2026-11-20) - Fixed
Only register
$sdk_debug_extensions_init_methodand$sdk_debug_extensions_init_time_mswhen extensions were loaded and their initialization took measurable time. (2026-11-20)
- Fixed
- New
Add an explicit per-select session replay masking policy. (2026-11-19)
- Fixed
Reduce main-thread work when validating native gzip output (2026-11-19)
- New
- New
Add opt-in
require_subresource_integrityto verify lazy-loaded extension scripts against SHA-384 hashes built into the trusted SDK bundle; it disables site apps and the toolbar and doesn't cover the initial loader unless pinned, third-party widgets or a malicious release with valid hashes. (2026-11-19)
- New
33 internal lines (docs, tests, tooling) left out.
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.