{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/js-xss/","markdown":"https://findsoftware.frbit.cloud/js-xss.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"js-xss","name":"js-xss","urls":{"home":"https://jsxss.com/","repository":"https://github.com/leizongmin/js-xss","docs":"https://jsxss.com/en/starter/quickstart.html"},"category":["library"],"description":"Node.js and browser module that sanitizes untrusted HTML against a whitelist of tags and attributes to prevent cross-site scripting.","maintainer":"Zongmin Lei","maintainerType":"individual","firstRelease":2012,"hosting":["node"],"language":"javascript","runtime":["node"],"runtimeMin":"node 0.10","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"npm, bower","licenseModel":"open-source","license":"MIT","currentMajor":"1","latestReleaseDate":"2026-10-24T00:00:00.000Z","githubStargazers":5312,"contributors":38,"packagistDownloads":null,"npmWeeklyDownloads":7468135,"dependentRepos":111112,"dependentPackages":899,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://jsxss.com/en/index.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://jsxss.com/en/starter/quickstart.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://api.github.com/repos/leizongmin/js-xss","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/leizongmin/js-xss/blob/master/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://github.com/leizongmin/js-xss/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://registry.npmjs.org/xss/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://registry.npmjs.org/xss/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://registry.npmjs.org/xss/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/leizongmin/js-xss/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/leizongmin/js-xss/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://github.com/leizongmin/js-xss/blob/master/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"licenseModel","url":"https://github.com/leizongmin/js-xss/blob/master/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://registry.npmjs.org/xss/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://registry.npmjs.org/xss","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://registry.npmjs.org/xss","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/leizongmin/js-xss","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/leizongmin/js-xss/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"npmWeeklyDownloads","url":"https://api.npmjs.org/downloads/range/2026-11-08:2026-11-14/xss","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/xss","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/xss","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"js-xss sanitizes untrusted HTML against a whitelist of tags and attributes to prevent cross-site scripting. The site documents its use on Node.js and in the browser, and a command-line tool for processing files.\n\n## Worth knowing\n\nWhen the whitelist allows the `style` attribute, its value is processed by the separate cssfilter module, which has its own default whitelist."}