Skip to content

Harden SVG XML parsing with defusedxml#95

Merged
realproject7 merged 1 commit into
mainfrom
task/40-defusedxml-hardening
Jul 13, 2026
Merged

Harden SVG XML parsing with defusedxml#95
realproject7 merged 1 commit into
mainfrom
task/40-defusedxml-hardening

Conversation

@realproject7

Copy link
Copy Markdown
Owner

Closes #40

Summary

  • use defusedxml for every runtime SVG parse
  • keep stdlib ElementTree only for safe SVG construction and serialization
  • add entity-declaration rejection coverage for public SVG parsing APIs

Verification

  • ./.po/venv/bin/python -m pytest
  • ./.po/venv/bin/python -m ruff check src tests
  • git diff --check

Generated with Codex

Co-authored-by: Codex <noreply@openai.com>
@realproject7
realproject7 merged commit b8b9f73 into main Jul 13, 2026
4 checks passed
@realproject7
realproject7 deleted the task/40-defusedxml-hardening branch July 13, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[security] use defusedxml for SVG parsing (defense-in-depth)

1 participant