fix: the markitdown converter processes rss/xml docu... in...#1875
Open
orbisai0security wants to merge 1 commit into
Open
fix: the markitdown converter processes rss/xml docu... in...#1875orbisai0security wants to merge 1 commit into
orbisai0security wants to merge 1 commit into
Conversation
Automated security fix generated by Orbis Security AI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix high severity security issue in
packages/markitdown/src/markitdown/converters/_markdownify.py.Vulnerability
V-001packages/markitdown/src/markitdown/converters/_markdownify.py:112Description: The markitdown converter processes RSS/XML documents at the convert_input entry point without disabling XML external entity (XXE) resolution. Python's standard xml.etree.ElementTree and lxml parsers, when used with default settings, may resolve external entity declarations embedded in XML documents. An attacker can craft a malicious RSS/XML document containing an XXE declaration that instructs the parser to read a local file (e.g., /etc/passwd, application secrets, private keys) and embed its contents in the parsed output. Additionally, recursive entity expansion (Billion Laughs attack) can exhaust server memory and CPU, causing a denial of service.
Changes
packages/markitdown/src/markitdown/converter_utils/docx/pre_process.pyVerification
Automated security fix by OrbisAI Security