{"package":"xss","ecosystem":"npm","latest_version":"1.0.15","description":"Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist","license":"MIT","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://github.com/leizongmin/js-xss","repository":"https://github.com/leizongmin/js-xss","downloads_weekly":4155270,"health":{"score":79,"risk":"moderate","breakdown":{"maintenance":15,"popularity":17,"security":25,"maturity":15,"community":7,"popularity_floor":0},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"1.0.15","total_count":71,"recent":["0.3.5","0.3.6","0.3.7","0.3.8","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":1,"first_published":"2012-09-19T12:13:55.901Z","last_published":"2024-03-03T02:33:54.727Z","dependencies_count":2,"dependencies":["commander","cssfilter"]},"github_stats":{"stars":5314,"forks":632,"open_issues":70,"is_archived":false,"pushed_at":"2026-04-28T06:46:55+00:00"},"bundle":null,"typescript":{"score":10,"has_types":true,"types_source":"bundled","types_package":null},"known_issues":{"bugs_count":0,"bugs_severity":{},"status_breakdown":{},"link":null,"scope":"none"},"historical_compromise":null,"recommendation":{"action":"safe_to_use","issues":[],"use_version":"1.0.15","version_hint":null,"summary":"xss@1.0.15 is safe to use (health: 79/100)"},"version_scoped":null,"_meta":{"endpoint":"check","tier":"full","philosophy":"DepScope is free. Use the cheapest endpoint that answers your real question.","cheaper_alternatives":[{"endpoint":"/api/exists/npm/xss","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/xss","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/xss","tokens_estimated":280,"use_when":"you want a plain-text LLM-friendly brief instead of JSON"},{"endpoint":"POST /api/check_bulk","tokens_estimated":60,"use_when":"you have 5+ packages to check; sends one round-trip instead of N"}],"docs":"https://depscope.dev/integrate"},"_cache":"hit","_response_ms":0}