Infinite Loop Vulnerability in haskell-xml-conduit Package

haskell-xml-conduit Updated 02 Oct 2025

Summary

18/12/2022
N/A
No i
High
7.5

CVE-2021-4249: A vulnerability was found in xml-conduit. Affects haskell-xml-conduit versions < 4be1021791dcdee8b164d239433a2043dc0939ea. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The haskell-xml-conduit package is a widely used library in Haskell for parsing and manipulating XML data. It provides a convenient way to handle XML streams and is essential for applications that require XML processing. However, it has been found to be vulnerable to a specific issue related to the DOCTYPE Entity Expansion Handler, which can lead to an infinite loop under certain conditions.

Vulnerability Detail

A vulnerability was identified in the xml-conduit library, specifically within the DOCTYPE Entity Expansion Handler. This issue can be exploited remotely, causing the application to enter an infinite loop, which may lead to denial of service. The vulnerability arises from improper handling of XML entities, allowing attackers to manipulate the input in a way that triggers the loop. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There are no specific workarounds mentioned for this vulnerability. The best course of action is to upgrade to the fixed version as soon as possible.

Conclusion

The haskell-xml-conduit package has a significant vulnerability that can lead to an infinite loop when processing certain XML inputs. Users are strongly advised to upgrade to the latest version to protect their applications from potential denial of service attacks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for haskell-xml-conduit →

Share this vulnerability

FAQ

The vulnerability allows for an infinite loop to occur when processing certain XML inputs, potentially leading to denial of service.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.

Versions prior to 1.9.1.0 are affected by this vulnerability.

Yes, upgrading to version 1.9.1.0 or later addresses this vulnerability.

While there are no specific workarounds, it is crucial to prioritize upgrading to the fixed version to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for haskell-xml-conduit.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback