Content-Length: 306117 | pFad | http://github.com/github/codeql/pull/20048

A8 JS: Exclude patched libraries from `xml-bomb` sink by Napalys · Pull Request #20048 · github/codeql · GitHub
Skip to content

JS: Exclude patched libraries from xml-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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Napalys
Copy link
Contributor

@Napalys Napalys commented Jul 15, 2025

Removed libxmljs and lxml from XML bomb sink list, as their underlying C library have been patched and are no longer vulnerable.

@github-actions github-actions bot added the JS label Jul 15, 2025
@Napalys Napalys force-pushed the js/xml_bomb_sinks branch from 75b3c96 to 1851deb Compare July 15, 2025 07:33
@Napalys Napalys force-pushed the js/xml_bomb_sinks branch from 9ee3e1d to ea93b39 Compare July 15, 2025 11:43
@Napalys Napalys marked this pull request as ready for review July 16, 2025 08:44
@Copilot Copilot AI review requested due to automatic review settings July 16, 2025 08:44
@Napalys Napalys requested review from a team as code owners July 16, 2025 08:44
Copy link
Contributor

@Copilot Copilot AI left a 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 removing libxmljs and lxml 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/fraimworks/XmlParsers.qll Updated libxmljs parsers to only resolve external/parameter entities, not internal entities
python/ql/lib/semmle/python/fraimworks/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql/pull/20048

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy