Skip to content
JS
Package

helmet-csp

Content Security Policy middleware

v4.1.0, 12 Jul 2026MITCommonJSTypes: BundledSecurity
$ npm install helmet-csp

Key numbers

As of 25 Sept 2026
Weekly downloads
416.3k
+5% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 months ago
v4.1.0
GitHub stars
10.7k
412 forks
Open issues / PRs
4 / 5
Contributors
-
Commits, last 52 weeks
74

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 577.5k (4 Aug 2026)Low 208.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

416,257 downloads last week, 1,924,642 in the last month. The 12-month change of +5% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
143 in total
Latest version
4.1.0, 12 Jul 20262 months ago
First published
28 Oct 2014
Last push to GitHub
11 Sept 202613 days before the snapshot
Repository archived
No
Open issues
4
Open pull requests
5
Commits, last 52 weeks
74
Dependents on npm
54

Major versions

  1. v4 first release 4.0.0, 1 Jun 2024
  2. v3 first release 3.0.0, 2 Aug 2020
  3. v2 first release 2.0.0, 28 Oct 2016
  4. v1 first release 1.0.0, 19 Dec 2015
  5. v0 first release 0.1.0, 28 Oct 2014

Recent releases

VersionPublished
4.1.012 Jul 2026
4.0.01 Jun 2024
3.4.02 May 2021
3.3.127 Dec 2020
3.3.027 Dec 2020
3.2.01 Nov 2020
3.1.015 Aug 2020
3.0.02 Aug 2020
2.10.024 Mar 2020
2.9.523 Feb 2020
2.9.421 Oct 2019
2.9.31 Oct 2019
2.9.220 Sept 2019
2.9.14 Sept 2019
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.0.0
Runtimes
-
Unpacked size (npm)
18 kB
Dependencies (0)
None
npm install helmet-csp
  • jsDelivrhttps://cdn.jsdelivr.net/npm/helmet-csp@4.1.0/
  • unpkghttps://unpkg.com/helmet-csp@4.1.0/
  • esm.shhttps://esm.sh/helmet-csp@4.1.0
PackageWeekly downloadsGzipLast releaseModuleComparison
express-csp-header16.3k-21 days agoESM + CommonJS-
csp-header114.8k-21 days agoESM + CommonJS-
vite-plugin-csp-guard17.9k-5 months agoESM only-
koa-helmet242.7k-8 months agoESM + CommonJS-
@nichtsam/helmet11.2k-6 months agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.