{"schemaVersion":3,"id":"CVE-2023-34104","aliases":["GHSA-6w63-h3fj-q4vw"],"status":"published","duplicateOf":null,"title":null,"description":"fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for denial of service (DoS) attacks. By crafting an entity name that results in an intentionally bad performing regex and utilizing it in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time. This problem has been resolved in v4.2.4. Users are advised to upgrade. Users unable to upgrade should avoid using DOCTYPE parsing by setting the `processEntities: false` option.","dates":{"published":"2023-06-06T17:35:54.699Z","modified":"2024-08-02T16:01:54.110Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","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":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":"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}]},"epss":{"probability":0.01126,"percentile":0.6575,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":-0.009000000000000154,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.01135},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01126,"percentile":0.6575}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01126,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01126,"percentile":0.6575}]},"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":[],"exploitCount":0,"weaknesses":[{"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"},{"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":"naturalintelligence","product":"fast-xml-parser","name":"fast-xml-parser","label":"fast-xml-parser","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.1.3, < 4.2.4","noFixRecorded":false,"fixedIn":null},{"text":"< 4.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1.3, < 4.2.4 | < 4.2.4","eol":null,"hubHref":"/vendor/naturalintelligence/fast-xml-parser"},{"vendor":"Npm","product":"fast-xml-parser","name":"fast-xml-parser","label":"fast-xml-parser","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/fast-xml-parser","purlType":"npm","versions":[{"text":"≥ 4.1.3, < 4.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1.3, < 4.2.4","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw","label":"github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Vendor Advisory"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c","label":"github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/a4bdced80369892ee413bf08e28b78795a2b0d5b","label":"github.com/NaturalIntelligence/fast-xml-parser/commit/a4bdced80369892ee413bf08e28b78795a2b0d5b","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34104","label":"nvd.nist.gov/vuln/detail/CVE-2023-34104","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser","label":"github.com/NaturalIntelligence/fast-xml-parser","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-06-06T17:35:54.699Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T16:01:54.110Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:09:30.028Z","stale":false,"partial":false}}