sanitize-html vulnerabilities

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

Package Health Score

94/100
  • securityNo known security issues
  • popularityKey ecosystem project
  • maintenanceHealthy
  • communityActive

Maintenance

HEALTHY

Commit Frequency

Loading chart...

Open Issues
121
Open PR
13
New PRS
1
Last Release
9 days ago
Last Commit
1 days ago
Maintainers
4

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 Healthy.

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

As a healthy sign for on-going project maintenance, we found that the GitHub repository had at least 1 pull request or issue interacted with by the community.

Popularity

KEY ECOSYSTEM PROJECT
Weekly downloads (7.7M)
GitHub Stars
4.5k
Forks
626
Contributors
0

The npm package sanitize-html receives a total of 7,721,076 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,529 times.

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

Community

ACTIVE
Readme.md
Yes
Contributing.md
Yes
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.1)

Package versions

119 VERSIONS IN TOTAL See all versions
versionpublisheddirect vulnerabilities
2.17.118 Feb, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
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

sanitize-html development dependencies

4 IN TOTAL