{"schemaVersion":3,"id":"CVE-2022-25858","aliases":["UBUNTU-CVE-2022-25858","DEBIAN-CVE-2022-25858","GHSA-4wf5-vphf-c2xc"],"status":"published","duplicateOf":null,"title":null,"description":"The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions.","dates":{"published":"2022-07-15T20:00:19.590Z","modified":"2024-09-16T19:45:47.956Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03253,"percentile":0.88203,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.048000000000000126,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.03205},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03253,"percentile":0.88203}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03205,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03253,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03253,"percentile":0.88203}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_1358A08B0C2C3F51","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JS-TERSER-2806366","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_95A7D777FEB99E9A","name":"Exploit Reference (snyk.io)","source":"reference","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"debian","product":"node-terser","name":"node-terser","label":"node-terser","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-terser","purlType":"deb","versions":[{"text":"< 4.8.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.8.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-terser","name":"node-terser","label":"node-terser","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-terser","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"qt6-webengine","name":"qt6-webengine","label":"qt6-webengine","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/qt6-webengine","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"Npm","product":"terser","name":"terser","label":"terser","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/terser","purlType":"npm","versions":[{"text":"< 4.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.14.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.8.1 | ≥ 5.0.0, < 5.14.2","eol":null,"hubHref":null},{"vendor":"terser","product":"terser","name":"terser","label":"terser","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.14.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.8.1 | ≥ 5.0.0, < 5.14.2","eol":null,"hubHref":"/vendor/terser/terser"},{"vendor":"wordpress","product":"autoshare-for-twitter","name":"Autopost for X (formerly Autoshare for Twitter)","label":"autoshare-for-twitter","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.1.2 (fixed in 1.2.0)","noFixRecorded":false,"fixedIn":"1.2.0"}],"versionsText":"≤ 1.1.2 (fixed in 1.2.0)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"elasticpress","name":"ElasticPress","label":"elasticpress","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 4.2.2 (fixed in 4.3.0)","noFixRecorded":false,"fixedIn":"4.3.0"}],"versionsText":"≤ 4.2.2 (fixed in 4.3.0)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"maps-block-apple","name":"Block for Apple Maps","label":"maps-block-apple","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.0.3 (fixed in 1.1.0)","noFixRecorded":false,"fixedIn":"1.1.0"}],"versionsText":"≤ 1.0.3 (fixed in 1.1.0)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"publisher-media-kit","name":"Publisher Media Kit","label":"publisher-media-kit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.2.1 (fixed in 1.3.0)","noFixRecorded":false,"fixedIn":"1.3.0"}],"versionsText":"≤ 1.2.1 (fixed in 1.3.0)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"retro-winamp-block","name":"Retro Winamp Block","label":"retro-winamp-block","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.1.0 (fixed in 1.2.0)","noFixRecorded":false,"fixedIn":"1.2.0"}],"versionsText":"≤ 1.1.0 (fixed in 1.2.0)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"simple-local-avatars","name":"Simple Local Avatars","label":"simple-local-avatars","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.5.0 (fixed in 2.6.0)","noFixRecorded":false,"fixedIn":"2.6.0"}],"versionsText":"≤ 2.5.0 (fixed in 2.6.0)","eol":null,"hubHref":null},{"vendor":"wordpress","product":"simple-podcasting","name":"Simple Podcasting","label":"simple-podcasting","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.2.4","noFixRecorded":false,"fixedIn":"1.2.4"}],"versionsText":"< 1.2.4","eol":null,"hubHref":null},{"vendor":"wordpress","product":"sophi","name":"Sophi","label":"sophi","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.2.0 (fixed in 1.2.1)","noFixRecorded":false,"fixedIn":"1.2.1"}],"versionsText":"≤ 1.2.0 (fixed in 1.2.1)","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-TERSER-2806366","label":"snyk.io/vuln/SNYK-JS-TERSER-2806366","hostname":"snyk.io","tags":["X Refsource MISC","REPORT","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","label":"snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722","hostname":"snyk.io","tags":["X Refsource MISC","REPORT","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135","label":"github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Broken Link"]},{"url":"https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b","label":"github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012","label":"github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-25858","label":"ubuntu.com/security/CVE-2022-25858","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25858","label":"www.cve.org/CVERecord?id=CVE-2022-25858","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-25858","label":"security-tracker.debian.org/tracker/CVE-2022-25858","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25858","label":"nvd.nist.gov/vuln/detail/CVE-2022-25858","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/terser/terser","label":"github.com/terser/terser","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/d535c069-cfa3-4c41-9a01-b4c4e7c75764","label":"www.wordfence.com/threat-intel/vulnerabilities/id/d535c069-cfa3-4c41-9a01-b4c4e7c75764","hostname":"www.wordfence.com","tags":["Vendor Advisory"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f1c08c10-7358-4618-b892-7d222ba460de","label":"www.wordfence.com/threat-intel/vulnerabilities/id/f1c08c10-7358-4618-b892-7d222ba460de","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-07-15T20:00:19.590Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T19:45:47.956Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:08:38.984Z","stale":false,"partial":false}}