sanitize-html vulnerabilities

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

Package Health Score

87/100
  • securityNo known security issues
  • popularityKey ecosystem project
  • maintenanceSustainable
  • communityActive

Maintenance

SUSTAINABLE

Commit Frequency

No commits over the last 6 months

Open Issues
17
Open PR
3
New PRS
0
Last Release
6 months ago
Last Commit
6 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.

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 (3.3M)
GitHub Stars
4.1k
Forks
369
Contributors
90

The npm package sanitize-html receives a total of 3,284,520 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,094 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
No
Code of Conduct
Yes
Contributors
90
Funding
No
LICENSE
MIT

With more than 10 contributors for the sanitize-html repository, this is possibly a sign for a growing and inviting community.

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 in the latest version

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

No vulnerabilities found

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