RUSTSEC-2019-0001: ammonia: Uncontrolled recursion leads to abort in HTML serialization

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.

More Info

https://github.com/rust-ammonia/ammonia/blob/master/CHANGELOG.md#210

Patched Versions