# CVE-2022-0217: It was discovered that an internal Prosody library to load XML based on libexpat does not properly restrict the XML features allowed in par…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 5.16%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-26T17:25:47.000Z
- Modified: 2026-06-17T04:20:10.290Z
- Weaknesses: CWE-611, CWE-776
- Assigned by: redhat

## Description

It was discovered that an internal Prosody library to load XML based on libexpat does not properly restrict the XML features allowed in parsed XML data. Given suitable attacker input, this results in expansion of recursive entity references from DTDs (CWE-776). In addition, depending on the libexpat version used, it may also allow injections using XML External Entity References (CWE-611).

(As written by CVE List.)

## Affected

- prosody: Fixed in prosody 0.11.12, Affects all versions with support for WebSockets.
- prosody prosody: before 0.11.12

## References

- <https://prosody.im/security/advisory_20220113/> (exploit, patch, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2040639> (issue-tracking, third-party-advisory)
- <https://prosody.im/security/advisory_20220113/1.patch> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2022-0217](https://www.cve.org/CVERecord?id=CVE-2022-0217), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2022-0217](https://nvd.nist.gov/vuln/detail/CVE-2022-0217), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0217 · Whole record: https://cve.day/CVE-2022-0217.json · Rebuilt by cve.day 2026-11-25T22:58:14.498Z
