Skip to content

[GHSA-848c-c2cx-j7qx] NLTK (Natural Language Toolkit) before version 3.9.3... - #9035

Open
PercevalFox wants to merge 1 commit into
PercevalFox/advisory-improvement-9035from
PercevalFox-GHSA-848c-c2cx-j7qx
Open

[GHSA-848c-c2cx-j7qx] NLTK (Natural Language Toolkit) before version 3.9.3...#9035
PercevalFox wants to merge 1 commit into
PercevalFox/advisory-improvement-9035from
PercevalFox-GHSA-848c-c2cx-j7qx

Conversation

@PercevalFox

Copy link
Copy Markdown

Updates

  • Affected products
  • CVSS v3
  • CVSS v4
  • Summary

Comments
This advisory is currently unreviewed and has no package mapping, so it does not surface to users of the affected package.

The referenced fix commit (66f14096, PR #3465) modifies nltk/collocations.py in the nltk/nltk repository, which publishes the nltk package on PyPI (declared in setup.py).

I verified the version boundary against the published artifacts:

  • nltk 3.9.2 wheel ships nltk/collocations.py containing the vulnerable
    eval("BigramAssocMeasures." + sys.argv[1]) call
  • nltk 3.9.3 wheel ships the same file with eval() replaced by getattr()

This matches the release tag already listed in the references (https://github.com/nltk/nltk/releases/tag/3.9.3).

Proposed range: introduced 0, fixed 3.9.3.

Also :
The CVSS v4 vector was rewritten to omit the trailing Not Defined (X) metrics, which the advisory form's validator rejects.
This is semantically identical per the CVSS v4.0 specification and yields the same score (8.5 / High). No change to the severity assessment.

@github-actions
github-actions Bot changed the base branch from main to PercevalFox/advisory-improvement-9035 August 9, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant