{"id":"CVE-2023-34104","aliases":["GHSA-6w63-h3fj-q4vw"],"summary":"Regex Injection via Doctype Entities","published_at":"2023-06-06T00:00:00Z","modified_at":"2026-03-09T16:01:35.601971Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.011260000057518482,"percentile":0.6698600053787231,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"NaturalIntelligence/fast-xml-parser","versions":[">= 4.1.3, < 4.2.4"],"provider":"cvelistv5","source":"CVE-2023-34104","relation":"self"},{"ecosystem":"NVD","package":"naturalintelligence:fast-xml-parser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"nvd","source":"CVE-2023-34104","relation":"self"},{"ecosystem":"npm","package":"fast-xml-parser","purl":"pkg:npm/fast-xml-parser","ranges":[{"type":"SEMVER","events":[{"introduced":"4.1.3"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"osv","source":"GHSA-6w63-h3fj-q4vw","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"MTA 6.2 for RHEL 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:6.2::el9","status":"fixed","packages":["mta/mta-ui-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2023:4627"],"provider":"redhat-vex","source":"CVE-2023-34104"},{"vendor":"Red Hat","product":"MTA 6.2 for RHEL 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:6.2::el8","status":"not_affected","packages":["mta/mta-hub-rhel9","mta/mta-operator-bundle","mta/mta-pathfinder-rhel9","mta/mta-rhel8-operator","mta/mta-windup-addon-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-34104"},{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["org.kie.kogito-kogito-apps"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-34104"},{"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","cpe":"cpe:/a:redhat:container_native_virtualization:4","status":"affected","packages":["container-native-virtualization/kubevirt-console-plugin","container-native-virtualization/kubevirt-console-plugin-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-34104"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2023-34104","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-34104","license":"CC-BY-4.0","published_at":"2023-06-06T17:35:54.699Z","modified_at":"2024-08-02T16:01:54.11Z","summary":"Regex Injection via Doctype Entities","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2023-34104"}],"affected":[{"ecosystem":"CVE","package":"NaturalIntelligence/fast-xml-parser","versions":[">= 4.1.3, < 4.2.4"],"provider":"cvelistv5","source":"CVE-2023-34104","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/a4bdced80369892ee413bf08e28b78795a2b0d5b"}]},{"provider":"nvd","source_id":"CVE-2023-34104","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34104","severity":[],"affected":[{"ecosystem":"NVD","package":"naturalintelligence:fast-xml-parser","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"nvd","source":"CVE-2023-34104","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-6w63-h3fj-q4vw","relation":"self","url":"https://osv.dev/vulnerability/GHSA-6w63-h3fj-q4vw","license":"CC-BY-4.0","published_at":"2023-06-06T17:33:13Z","modified_at":"2026-03-09T16:01:35.601971Z","summary":"fast-xml-parser vulnerable to Regex Injection via Doctype Entities","details":"### Impact\n\"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 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.\n\n### Patches\nThe problem has been resolved in v4.2.4\n\n### Workarounds\nAvoid using DOCTYPE parsing by `processEntities: false` option.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-6w63-h3fj-q4vw"}],"affected":[{"ecosystem":"npm","package":"fast-xml-parser","purl":"pkg:npm/fast-xml-parser","ranges":[{"type":"SEMVER","events":[{"introduced":"4.1.3"},{"fixed":"4.2.4"}]}],"fixed":["4.2.4"],"provider":"osv","source":"GHSA-6w63-h3fj-q4vw","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34104"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/a4bdced80369892ee413bf08e28b78795a2b0d5b"},{"type":"PACKAGE","url":"https://github.com/NaturalIntelligence/fast-xml-parser"}]},{"provider":"redhat-vex","source_id":"CVE-2023-34104","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-34104","license":"CC-BY-4.0","published_at":"2023-06-06T00:00:00Z","modified_at":"2026-03-09T13:40:08Z","summary":"fast-xml-parser: Regex Injection via Doctype Entities","details":"A flaw was found in the fast-XML-parser. The affected versions of fast-XML-parser are vulnerable to a denial of service caused by a regular expression denial of service (ReDoS) flaw in the Doctype Entities. By sending a specially crafted regex input, a remote attacker can cause a denial of service condition.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2023-34104"},{"type":"Red Hat","score":"Moderate","source":"CVE-2023-34104"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"MTA 6.2 for RHEL 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:6.2::el9","status":"fixed","packages":["mta/mta-ui-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2023:4627"],"provider":"redhat-vex","source":"CVE-2023-34104"},{"vendor":"Red Hat","product":"MTA 6.2 for RHEL 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:6.2::el8","status":"not_affected","packages":["mta/mta-hub-rhel9","mta/mta-operator-bundle","mta/mta-pathfinder-rhel9","mta/mta-rhel8-operator","mta/mta-windup-addon-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-34104"},{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["org.kie.kogito-kogito-apps"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-34104"},{"vendor":"Red Hat","product":"Red Hat OpenShift Virtualization 4","cpe":"cpe:/a:redhat:container_native_virtualization:4","status":"affected","packages":["container-native-virtualization/kubevirt-console-plugin","container-native-virtualization/kubevirt-console-plugin-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-34104"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-34104.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-34104"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2221261"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-34104"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34104"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw"}]}],"references":[{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-6w63-h3fj-q4vw"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/39b0e050bb909e8499478657f84a3076e39ce76c"},{"type":"WEB","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/a4bdced80369892ee413bf08e28b78795a2b0d5b"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34104"},{"type":"PACKAGE","url":"https://github.com/NaturalIntelligence/fast-xml-parser"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-34104.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-34104"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2221261"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-34104"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2023-34104","url":"https://www.cve.org/CVERecord?id=CVE-2023-34104","license":"CC-BY-4.0","modified_at":"2024-08-02T16:01:54.11Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-34104","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34104","relation":"self"},{"provider":"osv","source_id":"GHSA-6w63-h3fj-q4vw","url":"https://osv.dev/vulnerability/GHSA-6w63-h3fj-q4vw","license":"CC-BY-4.0","modified_at":"2026-03-09T16:01:35.601971Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-34104","url":"https://access.redhat.com/security/cve/CVE-2023-34104","license":"CC-BY-4.0","modified_at":"2026-03-09T13:40:08Z","relation":"self"}]}
