npm / helmet
helmet
What changed in helmet 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 breaking1 new APIs and options1 performance4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithelmet 87 changes
Breaking changes 1
Using
useDefaults: falsewith no directives is no longer valid at runtime or in the type system.
New APIs and options 1
Adds support for the noopener-allow-popups value.
Performance 1
Performance improved by about 7% when there are no dynamic directives.
Fixes and other changes 4
Error handling improved for invalid directive names.
When a function throws, dynamically-computed directive value entries call
nextinstead of throwing.Invalid dynamically-computed directive values call
nextinstead of throwing.Improves the error message shown when duplicate options are passed.