- Reported
-
- Issued
-
- Package
-
ammonia
(crates.io)
- Type
-
Vulnerability
- Keywords
-
#stack-overflow
#crash
- Aliases
-
- References
-
- CVSS Score
- 7.5
HIGH
- CVSS Details
-
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- CVSS Vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Patched
-
- Affected Functions
- Version
ammonia::Document::to_string
-
ammonia::Document::write_to
-
ammonia::clean
-
Description
Affected versions of this crate did use recursion for serialization of HTML
DOM trees.
This allows an attacker to cause abort due to stack overflow by providing
a pathologically nested input.
The flaw was corrected by serializing the DOM tree iteratively instead.
Advisory available under CC0-1.0
license.