Skip to content

XXE in LxmlEventHandler.parse() - #1228

Open
skinkie wants to merge 3 commits into
tefra:mainfrom
skinkie:sec_external_entities
Open

XXE in LxmlEventHandler.parse()#1228
skinkie wants to merge 3 commits into
tefra:mainfrom
skinkie:sec_external_entities

Conversation

@skinkie

@skinkie skinkie commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

As stated in #1212 there is a XXE possibility for untrusted sources. This pull request makes resolving external entities configurable and disabled by default.

📒 Description

Makes resolve external reference in lxml in optional.

Resolves #1212

🔗 What I've Done

Add a configuration option.

💬 Comments

🛫 Checklist

As stated in tefra#1212 there is a XXE possibility for untrusted sources. This pull request makes resolving external entities configurable and disabled by default.
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.97%. Comparing base (1fda878) to head (18ed451).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1228   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files         116      116           
  Lines        9393     9394    +1     
  Branches     1444     1444           
=======================================
+ Hits         9391     9392    +1     
  Misses          1        1           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

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.

XXE in LxmlEventHandler.parse() — iterparse() resolves external entities by default

1 participant