Repository navigation
v1.0.2 released - security hardening & fixes #3
nurulanam
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
v1.0.2 is live on npm. It's a recommended update for everyone, especially if your CTA links come from a CMS or user-supplied data.
There are no API changes and no breaking changes.
Security
hrefstarting withjavascript:,data:orvbscript:now renders as a plain button instead of a link, and a warning is logged to the console. This also catches disguised forms likeJaVa<tab>Script:.target: '_blank'automatically getrel="noopener noreferrer", which prevents reverse tabnabbing.Fixes
destroy()now removes the modal immediately, as documented.mobile.backButton, repeatedstop()/start()calls no longer pile up history entries, so visitors don't have to press Back several times to leave.Housekeeping
npm auditis clean. The package still has zero runtime dependencies. Building from source now needs Node >= 22.18, but installing and using the package is unaffected.Feedback
Full notes: v1.0.2 release
All reactions