Vigia

npm · npm:sanitize-html

sanitize-html active

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

Latest stable version2.17.7
Published2026-08-13 15:45:38 UTC
Requires (engines){"node":">=22.12.0"}
Peer dependencies—
Dist-tagsalpha: 2.17.5-alpha.1 latest: 2.17.7 previous: 1.27.5
LicenseMIT
Advisories on latest versionnone known
Last verified2026-09-28 08:57:08 UTC
Sourcesregistry.npmjs.org, registry.npmjs.org, api.deps.dev

Maintenance

Activityactive
Last stable release2026-08-13 15:45:38 UTC · 46 days ago
Stable releases in the last 12 months7
Published versions126

Heuristic based only on release dates; it does not measure issue or security response times.

Version history

VersionPublished
2.17.72026-08-13 15:45:38 UTC
2.17.62026-07-10 18:05:45 UTC
2.17.52026-06-10 17:14:18 UTC
2.17.42026-05-13 14:01:00 UTC
2.17.32026-04-15 17:48:03 UTC
2.17.22026-03-18 17:59:53 UTC
2.17.12026-02-18 20:36:19 UTC
2.17.02025-05-14 16:16:15 UTC
2.16.02025-04-16 17:55:59 UTC
2.15.02025-03-19 16:06:54 UTC
2.14.02024-12-18 17:37:31 UTC
2.13.12024-10-03 14:09:17 UTC
2.13.02024-03-20 18:50:43 UTC
2.12.12024-02-22 16:38:17 UTC
2.12.02024-02-21 15:38:11 UTC
2.11.02023-06-21 16:09:00 UTC
2.10.02023-02-17 20:23:14 UTC
2.9.02023-02-01 14:34:56 UTC
2.8.12022-12-21 15:41:57 UTC
2.8.02022-12-12 17:55:32 UTC

Showing the 20 most recent of 121 versions. JSON

Frequently asked questions

What is the latest version of sanitize-html?

The latest stable version of sanitize-html is 2.17.7, published on 2026-08-13. Verified by Vigia on 2026-09-28.

Is sanitize-html deprecated?

No. sanitize-html is not marked as deprecated in the registry.

Which Node.js version does sanitize-html require?

sanitize-html 2.17.7 declares this requirement: {"node":">=22.12.0"}.

Does sanitize-html 2.17.7 have known vulnerabilities?

No known advisories affect sanitize-html 2.17.7 according to the data Vigia checks.

Is sanitize-html still maintained?

sanitize-html published 7 stable releases in the last 12 months; the most recent was 46 days ago. Activity: active.

Observed changes

No changes observed yet since Vigia started tracking this package.

Related packages

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html/versions/{version}