[GHSA-75vw-3m5v-fprh] corenlp is vulnerable to Improper Restriction of XML External Entity Reference#7392
Merged
advisory-database[bot] merged 1 commit intotjuyuxinzhang/advisory-improvement-7392from Apr 14, 2026
Conversation
c64637a
into
tjuyuxinzhang/advisory-improvement-7392
4 checks passed
Contributor
|
Hi @tjuyuxinzhang! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future! |
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.
Updates
Comments
The current advisory is incomplete because it lists affected versions as <= 4.3.2 but leaves the patched versions field empty. The package-level fixed release should be 4.4.0. This is supported by Snyk, which lists the Maven package range as [,4.4.0) and recommends upgrading to 4.4.0 or higher, and by upstream PR #1242, where the author explicitly states “Look for 4.4.0” when asked which release contains the fix. The upstream fix commit 1940ffb938dc4f3f5bc5f2a2fd8b35aabbbae3dd adds XMLConstants.FEATURE_SECURE_PROCESSING to the SchemaFactory, confirming the code-level remediation. Updating the advisory to use affected versions < 4.4.0 and patched version 4.4.0 makes the record more accurate and actionable for Maven package consumers.
Description
CVE-2022-0239 affects edu.stanford.nlp:stanford-corenlp when a malicious XML schema is passed to getValidatingXmlParser(). The vulnerable code creates a SchemaFactory without enabling secure processing, which allows external entity resolution during schema parsing.
This can lead to XML External Entity (XXE) Injection, with impacts including local file disclosure, server-side request forgery (SSRF), and denial of service, depending on how the library is used by the consuming application.
The issue is fixed by enabling XMLConstants.FEATURE_SECURE_PROCESSING in the XML schema factory configuration.
Affected Maven package versions are all versions before 4.4.0. The first fixed package release is 4.4.0.