Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

defusedxml

Protects Python XML parsing from billion laughs and other XML bomb attacks.

Auth and security librariesPYPI

GitHubWebsite

1. License

License from PyPI classifier.

github.com/tiran/defusedxml

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What defusedxml does

Protects Python XML parsing from billion laughs and other XML bomb attacks.

defusedxml popularity

63 / 100
Gid Score, #819 overall
68.6M
downloads a week, pypi
560
GitHub stars
16
agent projects use it
defusedxml: downloads per weekPyPI, defusedxml 67,626,836
defusedxml: GitHub starstiran/defusedxml 560

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How defusedxml is used

  • defusedxml is a dependency in 16 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 440 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is MarkupSafe (45 projects).
  • Projects that use it most often also use NumPy (94.3%), packaging (91.8%), Jinja2 (90.9%).

By coding agent

9 projects, 0.3%
8 projects, 0.3%

Often used with

In 94.3% of its projects
In 91.8% of its projects
In 90.9% of its projects
In 89.5% of its projects
In 89.3% of its projects
In 88.6% of its projects
In 88.4% of its projects
In 87.5% of its projects

More about defusedxml

More in Auth and security libraries

Alternatives

defusedxml This page

PSF-2.0Gid 6368.6M/wk

MarkupSafe

Utility for safely escaping and marking HTML/XML strings to prevent injection attacks.

BSD-3-ClauseGid 67198M/wk

Compare defusedxml with another tool

Get started

Install it.

pip install defusedxml

No step-by-step start for defusedxml yet: we have not written its hand-checked card.