{"api_version":"1","generated_at":"2026-04-17T15:14:18+00:00","cve":"CVE-2022-25887","urls":{"html":"https://cve.report/CVE-2022-25887","api":"https://cve.report/api/cve/CVE-2022-25887.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25887","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25887"},"summary":{"title":"CVE-2022-25887","description":"The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-08-30 05:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in org.webjars.npm:sanitize-html | CVE-2022-25887 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in sanitize-html | CVE-2022-25887 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Merge pull request #557 from apostrophecms/release-2.7.1 · apostrophecms/sanitize-html@b4682c1 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/apostrophecms/sanitize-html/pull/557","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Release 2.7.1 by boutell · Pull Request #557 · apostrophecms/sanitize-html · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25887","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25887","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Nariyoshi Chida of NTT Security Japan","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25887","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apostrophecms","cpe5":"sanitize-html","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-25887","qid":"184069","title":"Debian Security Update for node-sanitize-html (CVE-2022-25887)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-08-30T05:00:02.403842Z","ID":"CVE-2022-25887","STATE":"PUBLIC","TITLE":"Regular Expression Denial of Service (ReDoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"sanitize-html","version":{"version_data":[{"version_affected":"<","version_value":"2.7.1"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Regular Expression Denial of Service (ReDoS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526","name":"https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526"},{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102","name":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102"},{"refsource":"MISC","url":"https://github.com/apostrophecms/sanitize-html/pull/557","name":"https://github.com/apostrophecms/sanitize-html/pull/557"},{"refsource":"MISC","url":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c","name":"https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c"}]},"description":{"description_data":[{"lang":"eng","value":"The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Nariyoshi Chida of NTT Security Japan"}]},"nvd":{"publishedDate":"2022-08-30 05:15:00","lastModifiedDate":"2023-08-08 14:22:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.7.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}