fix(deps): remove nltk to resolve CVE-2026-54293#305
Merged
luarss merged 2 commits intoJun 20, 2026
Conversation
No patched version of nltk is available for the URL-encoded path traversal vulnerability (CVE-2026-54293). Remove it by: - Replacing UnstructuredHTMLLoader (unstructured -> nltk) with BSHTMLLoader (beautifulsoup4) in process_html.py BSHTMLLoader (beautifulsoup4) in process_html.py - Removing unstructured==0.18.18 and nltk==3.9.4 from pyproject.toml - Promoting beautifulsoup4 from dev to main dependencies - Deleting the now-unnecessary post_install.py NLTK data downloader - Removing the post_install.py step from both Dockerfiles Signed-off-by: Jack Luar <jluar@precisioninno.com>
…oader process_html.py was migrated from UnstructuredHTMLLoader to BSHTMLLoader but the test mocks were not updated, causing 8 test failures in CI. Signed-off-by: Jack Luar <jluar@precisioninno.com>
b1904c6 to
a474e34
Compare
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.
No patched version of nltk is available for the URL-encoded path traversal vulnerability (CVE-2026-54293). Remove it by: