This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate mdbook

Dependencies

(28 total, 5 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 ammonia ⚠️^4.0.04.1.2maybe insecure
 anyhow^1.0.711.0.100up to date
 chrono^0.4.240.4.42up to date
 clap^4.3.124.5.53up to date
 clap_complete^4.3.24.5.61up to date
 elasticlunr-rs^3.0.23.0.2up to date
 env_logger^0.11.10.11.8up to date
 futures-util^0.3.280.3.31up to date
 handlebars^6.06.3.2up to date
 ignore^0.4.200.4.25up to date
 log^0.4.170.4.29up to date
 memchr^2.5.02.7.6up to date
 notify^8.0.08.2.0up to date
 notify-debouncer-mini^0.6.00.7.0out of date
 once_cell^1.17.11.21.3up to date
 opener^0.7.00.8.3out of date
 pathdiff^0.2.10.2.3up to date
 pulldown-cmark^0.10.00.13.0out of date
 regex^1.8.11.12.2up to date
 serde^1.0.1631.0.228up to date
 serde_json^1.0.961.0.145up to date
 shlex^1.3.01.3.0up to date
 tempfile^3.4.03.23.0up to date
 tokio^1.28.11.48.0up to date
 toml^0.5.110.9.8out of date
 topological-sort^0.2.20.2.2up to date
 walkdir^2.3.32.5.0up to date
 warp^0.3.60.4.2out of date

Dev dependencies

(6 total, all up-to-date)

CrateRequiredLatestStatus
 assert_cmd^2.0.112.1.1up to date
 predicates^3.0.33.1.3up to date
 pretty_assertions^1.3.01.4.1up to date
 select^0.6.00.6.1up to date
 semver^1.0.171.0.27up to date
 walkdir^2.3.32.5.0up to date

Security Vulnerabilities

ammonia: Incorrect handling of embedded SVG and MathML leads to mutation XSS after removal

RUSTSEC-2025-0071

Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML.

This vulnerability only has an effect when the svg or math tag is allowed, because it relies on a tag being parsed as html during the cleaning process, but serialized in a way that causes in to be parsed as xml by the browser.

Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:

  • title
  • textarea
  • xmp
  • iframe
  • noembed
  • noframes
  • plaintext
  • noscript
  • style
  • script

Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.