Skip to content
JS
Package

host-validation-middleware

Middleware for validating host headers in requests to protect against DNS rebinding attacks.

v0.1.4, 4 Apr 2026MITESM onlyTypes: NoneHTTP servers and web frameworks
$ npm install host-validation-middleware

Key numbers

As of 25 Sept 2026
Weekly downloads
25.6k
+14% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 months ago
v0.1.4
GitHub stars
1
0 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
46

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 48.6k (12 May 2026)Low 17.6k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

25,551 downloads last week, 114,887 in the last month. The 12-month change of +14% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.1.4, 4 Apr 20265 months ago
First published
-
Last push to GitHub
1 Sept 202624 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
46
Dependents on npm
3

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
^18.0.0 || >=20.0.0
Runtimes
-
Unpacked size (npm)
10 kB
Dependencies (0)
None
npm install host-validation-middleware
  • jsDelivrhttps://cdn.jsdelivr.net/npm/host-validation-middleware@0.1.4/
  • unpkghttps://unpkg.com/host-validation-middleware@0.1.4/
  • esm.shhttps://esm.sh/host-validation-middleware@0.1.4
PackageWeekly downloadsGzipLast releaseModuleComparison
cookie-session308.2k-1 year ago--
koa-connect99.1k-7 months agoCommonJS-
ware172k-11 years agoCommonJS-
connect-slashes67.9k-7 years agoCommonJS-
middleware-handler6.9k-13 years ago--
koa2-connect5.9k-9 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.