# CVE-2021-4249: xml-conduit DOCTYPE Entity Expansion Parse.hs infinite loop

- Severity: Medium 4.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-02)
- Published: 2022-12-18T00:00:00.000Z
- Modified: 2026-06-17T04:19:21.033Z
- Also known as: HSEC-2023-0004
- Weaknesses: CWE-404
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in xml-conduit. It has been classified as problematic. Affected is an unknown function of the file xml-conduit/src/Text/XML/Stream/Parse.hs of the component DOCTYPE Entity Expansion Handler. The manipulation leads to infinite loop. It is possible to launch the attack remotely. Upgrading to version 1.9.1.0 is able to address this issue. The name of the patch is 4be1021791dcdee8b164d239433a2043dc0939ea. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216204.

(As written by CVE List.)

## Affected

- unspecified xml-conduit: 0.5.0; 0.5.0.1; 0.5.1; 0.5.1.1; 0.5.1.2; 0.5.2; 0.5.3; 0.5.3.1; 0.5.4; 0.6.0; 0.6.1; 0.7.0; and 62 more
- xml-conduit (Hackage): from 0.5.0 before 1.9.1.0
- haskell xml-conduit: before 1.9.1.0

## Every score

- VulDB: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/snoyberg/xml/pull/161> (fix, patch, third-party-advisory)
- <https://hackage.haskell.org/package/xml-conduit-1.9.1.0> (release-notes, vendor-advisory)
- <https://github.com/snoyberg/xml/commit/4be1021791dcdee8b164d239433a2043dc0939ea> (fix, patch, third-party-advisory)
- <https://vuldb.com/?id.216204> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-4249](https://www.cve.org/CVERecord?id=CVE-2021-4249), CVE Terms of Use, modified 2025-04-15
- Haskell Security Advisories: [HSEC-2023-0004](https://osv.dev/vulnerability/HSEC-2023-0004), CC0-1.0, modified 2026-05-30
- NVD: [CVE-2021-4249](https://nvd.nist.gov/vuln/detail/CVE-2021-4249), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4249 · Whole record: https://cve.day/CVE-2021-4249.json · Rebuilt by cve.day 2026-11-25T22:58:07.949Z
