---
title: "helmet 8.0.0 Breaking Changes on npm | Since.dev"
description: "What each helmet release removed, renamed or changed: 8 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/helmet
last_updated: 2026-12-04
---

# helmet breaking changes

helmet 8.0.0 (September 28, 2024) is its newest release with breaking changes, 5 of them. The first: Drops support for Node.js 16 and 17 in helmet 8.0.0. Every breaking API change we have recorded in helmet on npm: 8 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.3.0`, released July 12, 2026. [Source repository](https://github.com/helmetjs/helmet)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 5 breaking changes in 1 version.

## helmet 8.0.0 breaking changes

helmet 8.0.0, released September 28, 2024: 5 breaking changes.

- **Removed**  

Node.js 16 and 17 are no longer supported. Node.js 18 or later is now required. [github.com](https://github.com/helmetjs/helmet/blob/v8.0.0/CHANGELOG.md)
- **Behavior changed** `Content-Security-Policy`  

Content-Security-Policy now throws an error when a directive that needs quotes lacks them, such as self instead of 'self'. Add the quotes to your directive values. [github.com](https://github.com/helmetjs/helmet/blob/v8.0.0/CHANGELOG.md)
- **Behavior changed** `Content-Security-Policy.getDefaultDirectives`  

getDefaultDirectives returns a deep copy, so code that mutated the result will no longer change the defaults. [github.com](https://github.com/helmetjs/helmet/blob/v8.0.0/CHANGELOG.md)
- **Behavior changed** `Strict-Transport-Security`  

A misspelled includeSubDomains option in Strict-Transport-Security now throws an error instead of logging a warning. Fix the option name. [github.com](https://github.com/helmetjs/helmet/blob/v8.0.0/CHANGELOG.md)
- **Default changed** `Strict-Transport-Security`  

The Strict-Transport-Security default max-age is now 365 days instead of 180. Set max-age explicitly if you need the old value. [github.com](https://github.com/helmetjs/helmet/blob/v8.0.0/CHANGELOG.md)

## helmet 7.0.0 breaking changes

helmet 7.0.0, released May 6, 2023: 3 breaking changes.

- **Removed**  

Helmet 7 requires Node 16 or newer. Upgrade your Node.js runtime before using this version. [github.com](https://github.com/helmetjs/helmet/blob/v7.0.0/CHANGELOG.md)
- **Removed** `expectCt`  

expectCt was removed in helmet 7.0.0 [npmjs.com](https://www.npmjs.com/package/helmet/v/7.0.0)
- **Signature changed** `HelmetOptions`  

Was type HelmetOptions = {contentSecurityPolicy?: ContentSecurityPolicyOptions | boolean crossOriginEmbedderPolicy?: CrossOriginEmbedderPolicyOptions | boolean crossOriginOpenerPolicy?: CrossOriginOpenerPolicyOptions | boolean... [npmjs.com](https://www.npmjs.com/package/helmet/v/7.0.0)

## Related packages

- [hsts](https://since.dev/packages/npm/hsts.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
