npm · npm:sanitize-html
sanitize-html active
Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis
The latest stable version of sanitize-html is 2.18.2, published on 2026-11-11. Verified by Vigia on 2026-11-12.
| Latest stable version | 2.18.2 |
|---|---|
| Published | 2026-11-11 19:53:59 UTC |
| Install | npm install sanitize-html@latest |
| Requires (engines) | {"node":">=22.12.0"} |
| Peer dependencies | — |
| Dist-tags | alpha: 2.17.5-alpha.1 latest: 2.18.2 previous: 1.27.5 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 21:01:59 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Is your project affected?
Check my whole package.jsonGet notified of new versions (Atom)Facts for my AGENTS.md
Free, no signup. Paste your manifest and see what is outdated, deprecated or vulnerable.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-11-11 19:53:59 UTC · 1 days ago |
| Stable releases in the last 12 months | 10 |
| Published versions | 129 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.18.2 | 2026-11-11 19:53:59 UTC |
2.18.1 | 2026-10-14 18:15:44 UTC |
2.18.0 | 2026-09-30 19:26:15 UTC |
2.17.7 | 2026-08-13 15:45:38 UTC |
2.17.6 | 2026-07-10 18:05:45 UTC |
2.17.5 | 2026-06-10 17:14:18 UTC |
2.17.4 | 2026-05-13 14:01:00 UTC |
2.17.3 | 2026-04-15 17:48:03 UTC |
2.17.2 | 2026-03-18 17:59:53 UTC |
2.17.1 | 2026-02-18 20:36:19 UTC |
2.17.0 | 2025-05-14 16:16:15 UTC |
2.16.0 | 2025-04-16 17:55:59 UTC |
2.15.0 | 2025-03-19 16:06:54 UTC |
2.14.0 | 2024-12-18 17:37:31 UTC |
2.13.1 | 2024-10-03 14:09:17 UTC |
2.13.0 | 2024-03-20 18:50:43 UTC |
2.12.1 | 2024-02-22 16:38:17 UTC |
2.12.0 | 2024-02-21 15:38:11 UTC |
2.11.0 | 2023-06-21 16:09:00 UTC |
2.10.0 | 2023-02-17 20:23:14 UTC |
Showing the 20 most recent of 124 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 2.17.5 |
node 18 | 2.17.5 |
node 20 | 2.17.5 |
node 22 | 2.18.2 |
node 24 | 2.18.2 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of sanitize-html?
The latest stable version of sanitize-html is 2.18.2, published on 2026-11-11. Verified by Vigia on 2026-11-12.
How do I install the latest version of sanitize-html?
Run npm install sanitize-html@latest. The latest stable version is 2.18.2 (verified 2026-11-12).
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.18.2 declares this requirement: {"node":">=22.12.0"}.
Does sanitize-html 2.18.2 have known vulnerabilities?
No known advisories affect sanitize-html 2.18.2 according to the data Vigia checks.
Is sanitize-html still maintained?
sanitize-html published 10 stable releases in the last 12 months; the most recent was 1 days ago. Activity: active.
Observed changes
- Wed Nov 11 2026 21:01:35 GM +0000 (Coordinated Universal Time) — released 2.18.1 → 2.18.2
- hu Oct 15 2026 12:22:22 GMT+0000 (Coordinated Universal Time) — released 2.18.1 → 2.18.1
- Wed Oct 14 2026 18:22:00 GM +0000 (Coordinated Universal Time) — released 2.18.0 → 2.18.1
- hu Oct 01 2026 09:38:30 GMT+0000 (Coordinated Universal Time) — released 2.18.0 → 2.18.0
- Wed Sep 30 2026 19:35:52 GM +0000 (Coordinated Universal Time) — released 2.17.7 → 2.18.0
Related packages
- @graphql-tools/executor
- @storybook/csf
- cookies
- babel-runtime
- is-electron
- strip-comments
- wait-on
- @react-aria/focus
- @octokit/auth-app
- tinyqueue
- @tufjs/canonical-json
- leac
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/sanitize-html) [](https://vigia.coredls.cloud/npm/sanitize-html) [](https://vigia.coredls.cloud/npm/sanitize-html)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html
GET https://vigia.coredls.cloud/v1/packages/npm/sanitize-html/versions/{version}