sanitize-html vulnerabilities

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

Package Health Score

82/100
  • securityNo known security issues
  • popularityKey ecosystem project
  • maintenanceSustainable
  • communitySustainable

Maintenance

SUSTAINABLE

Commit Frequency

No commits over the last 6 months

Open Issues
17
Open PR
3
New PRS
0
Last Release
7 months ago
Last Commit
7 months ago
Maintainers
7

Further analysis of the maintenance status of sanitize-html based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Sustainable.

We found that sanitize-html demonstrates a positive version release cadence with at least one new version released in the past 12 months.

In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.

Popularity

KEY ECOSYSTEM PROJECT
Weekly downloads (1.8M)
GitHub Stars
4.1k
Forks
370
Contributors
0

The npm package sanitize-html receives a total of 1,835,560 downloads a week. As such, we scored sanitize-html popularity level to be Key ecosystem project.

Based on project statistics from the GitHub repository for the npm package sanitize-html, we found that it has been starred 4,113 times.

Downloads are calculated as moving averages for a period of the last 12 months, excluding weekends and known missing data points.

Community

SUSTAINABLE
Readme.md
Yes
Contributing.md
No
Code of Conduct
Yes
Contributors
0
Funding
No
LICENSE
MIT

This project has seen only 10 or less contributors.

License

MIT>=0;

Direct Vulnerabilities

Known vulnerabilities in the sanitize-html package. This does not include vulnerabilities belonging to this package’s dependencies.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free

Security

NO KNOWN SECURITY ISSUES
Show only direct vulnerabilities in latest version
No vulnerabilities found

No vulnerabilities found in the latest version

There are 10 total vulnerabilities, but none affect the latest version (2.17.0)

Package versions

118 VERSIONS IN TOTAL See all versions
versionpublisheddirect vulnerabilities
2.17.014 May, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.16.016 Apr, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.15.019 Mar, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.14.018 Dec, 2024
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.13.13 Oct, 2024
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.13.020 Mar, 2024
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.12.122 Feb, 2024
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.12.021 Feb, 2024
  • 0
    C
  • 0
    H
  • 1
    M
  • 0
    L
2.11.021 Jun, 2023
  • 0
    C
  • 0
    H
  • 1
    M
  • 0
    L
2.10.017 Feb, 2023
  • 0
    C
  • 0
    H
  • 1
    M
  • 0
    L