Decision Workspace
css-sanitizer vs svg-hush vs wafrift-sanitizer
Side-by-side comparison of Rust crates
53
css-sanitizer
experimentalv0.3.0
Policy-driven CSS sanitization on top of lightningcss
53
svg-hush
growingv0.9.6
Strip scripting and other abusable features from SVG files
43
wafrift-sanitizer
experimentalv0.3.1
Client-side sanitizer decompiler: recover the sanitizer from a JS source map, extract its allow/deny model, then L*/SFA-mine inputs that survive it. The DOM-XSS dual of the WAF decompiler.
Core Metrics
| css-sanitizer | svg-hush | wafrift-sanitizer | |
|---|---|---|---|
| Health Score | 53 | 53 | 43 |
| Total Downloads | 854 | 216.9K | 38 |
| 30d Downloads | 0 | 13.9K | 0 |
| Dependents | 0 | 3 | 1 |
| Releases | 5 | 7 | 1 |
| Last Updated | 18d ago | 148d ago | 34d ago |
| Age | 3m | 3y 11m | 1m |
Health Breakdown
css-sanitizer
Maintenance
17
Quality
14
Community
6
Popularity
4
Documentation
12
svg-hush
Maintenance
10
Quality
14
Community
11
Popularity
6
Documentation
12
wafrift-sanitizer
Maintenance
11
Quality
13
Community
7
Popularity
2
Documentation
10
Technical Details
| css-sanitizer | svg-hush | wafrift-sanitizer | |
|---|---|---|---|
| Version | 0.3.0 | 0.9.6 | 0.3.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 2 | 5 | 7 |
| Crate Size | 46KB | 17KB | 46KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.93.0 | 1.85 | — |
| Owners | 1 | 3 | 1 |
Links
Quick Verdict
- •css-sanitizer leads with a health score of 53/100, but none of the options score above 80.
- •svg-hush has the most downloads (216.9K), suggesting wider adoption.