- Notifications
You must be signed in to change notification settings - Fork1.7k
JS: Exclude patched libraries fromxml-bomb
sink#20048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR updates XML bomb vulnerability detection by removinglibxmljs
andlxml
from the list of vulnerable XML parsing sinks. The underlying libxml2 C library has been patched with entity reference loop detection that prevents XML bomb attacks, making these libraries no longer vulnerable to such attacks.
Key changes:
- Removed XML bomb vulnerability detection for
libxmljs
in JavaScript - Removed XML bomb vulnerability detection for
lxml
in Python - Updated test expectations to reflect the reduced number of detected vulnerabilities
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
javascript/ql/lib/semmle/javascript/frameworks/XmlParsers.qll | Updated libxmljs parsers to only resolve external/parameter entities, not internal entities |
python/ql/lib/semmle/python/frameworks/Lxml.qll | Removed XML bomb detection logic for lxml parsers with explanatory comment |
javascript/ql/lib/change-notes/2025-07-15-xml-bomb-sinks.md | Added changelog entry documenting libxmljs changes |
python/ql/lib/change-notes/2025-07-15-xml-bomb-sinks-python.md | Added changelog entry documenting lxml changes |
Various test files | Updated test expectations and removed XML bomb alert comments |
Uh oh!
There was an error while loading.Please reload this page.
Removed
libxmljs
andlxml
from XML bomb sink list, as their underlying C library have beenpatched and are no longer vulnerable.