{"schemaVersion":3,"id":"CVE-2021-43307","aliases":["GHSA-4x5v-gmq8-25ch","CGA-3f5v-3vr5-6jqq","CGA-5j8v-vh48-2fcr","CGA-69fr-cq83-j67r","CGA-7493-5qc7-72q4","CGA-7jjv-7r8j-g9cp","CGA-8x78-rf9j-m2m3","CGA-hcrw-8p82-g2jf","CGA-p926-87g2-3x62","CGA-pqhj-fcjh-9hc4","CGA-q99v-hcc7-f6hp","CGA-vjpw-vj82-qh25","CGA-xj6h-8gpr-h35c"],"status":"published","duplicateOf":null,"title":null,"description":"An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method","dates":{"published":"2022-06-01T16:47:38.625Z","modified":"2024-09-17T00:35:50.984Z","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.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/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":"OSV · Chainguard","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":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","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}]},"epss":{"probability":0.01533,"percentile":0.74433,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.04299999999999998,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01576},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01533,"percentile":0.74433}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01576,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01533,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01533,"percentile":0.74433}]},"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_0D7205D37B34D363","name":"Exploit Reference (research.jfrog.com)","source":"reference","url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"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"}],"affected":[{"vendor":"chainguard","product":"pgadmin4","name":"pgadmin4","label":"pgadmin4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/pgadmin4","purlType":"apk","versions":[{"text":"< 9.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"pgadmin4-oci-entrypoint","name":"pgadmin4-oci-entrypoint","label":"pgadmin4-oci-entrypoint","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/pgadmin4-oci-entrypoint","purlType":"apk","versions":[{"text":"< 9.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.10-captum","name":"py3.10-captum","label":"py3.10-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-captum","name":"py3.11-captum","label":"py3.11-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-captum","name":"py3.12-captum","label":"py3.12-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-captum","name":"py3.13-captum","label":"py3.13-captum","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-captum","purlType":"apk","versions":[{"text":"< 0.9.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.0-r1","eol":null,"hubHref":null},{"vendor":"Npm","product":"semver-regex","name":"semver-regex","label":"semver-regex","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/semver-regex","purlType":"npm","versions":[{"text":"< 3.1.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.4 | ≥ 4.0.0, < 4.0.3","eol":null,"hubHref":null},{"vendor":"semver-regex_project","product":"semver-regex","name":"semver-regex","label":"semver-regex","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.4 | ≥ 4.0.0, < 4.0.3","eol":null,"hubHref":"/vendor/semver-regex_project/semver-regex"},{"vendor":"semver-regex","product":"semver-regex","name":"semver-regex","label":"semver-regex","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 3.1.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 3.1.4","eol":null,"hubHref":"/vendor/semver-regex/semver-regex"},{"vendor":"wordpress","product":"insert-special-characters","name":"Insert Special Characters","label":"insert-special-characters","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.0.4 (fixed in 1.0.5)","noFixRecorded":false,"fixedIn":"1.0.5"}],"versionsText":"≤ 1.0.4 (fixed in 1.0.5)","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/","label":"research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/","hostname":"research.jfrog.com","tags":["X Refsource MISC","EVIDENCE","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43307","label":"nvd.nist.gov/vuln/detail/CVE-2021-43307","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c","label":"github.com/sindresorhus/semver-regex/commit/d8ba39a528c1027c43ab23f12eec28ca4d40dd0c","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sindresorhus/semver-regex","label":"github.com/sindresorhus/semver-regex","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349","label":"research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349","hostname":"research.jfrog.com","tags":["WEB"]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/e78c539c-5b72-4043-aa5a-6234913364ac","label":"www.wordfence.com/threat-intel/vulnerabilities/id/e78c539c-5b72-4043-aa5a-6234913364ac","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-C234-P6CQ-QWG7","CGA-QV2C-6RQG-4J2Q"]},"timeline":[{"kind":"published","date":"2022-06-01T16:47:38.625Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T00:35:50.984Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:13:26.300Z","stale":false,"partial":false}}