spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

CVE in dependency (black==22.3.0)

Open sstefanov78 opened this issue 1 year ago • 2 comments

black==22.3.0 is a dependency and the version is pinned in spaCy's requirements.txt. There is a CVE affecting black versions prior to 24.3.0, specifically CVE-2024-21503 (https://nvd.nist.gov/vuln/detail/CVE-2024-21503).

Impact: Although not a run-time vulnerability in most scenarios (unless untrusted code is being processed), it still shows up in security scans that are the norm for any enterprise grade software, thus triggering processes for handling vulnerabilities / exceptions.

Please evaluate what it would take to migrate to the latest version of black so this detection would clear up.

How to reproduce the behaviour

To reproduce: in our pipeline we are using Wiz for scans, but even a "visual/manual" check in requirements.txt in the installed python package will show the reference to black==22.3.0.

Your Environment

  • Operating System: not relevant (linux based)
  • Python Version Used: not relevant (3.8 / 3.9)
  • spaCy Version Used: not relevant (at least one of our models uses 3.6.0 but the issue is also affecting master)
  • Environment Information: not relevant (building various docker based images in linux and/or Windows VMs)

sstefanov78 avatar Sep 25 '24 06:09 sstefanov78

Thanks for letting us know about this. Black isn't an installation or setup requirement of spaCy, so this doesn't affect users. I'll update the requirement though.

honnibal avatar Sep 30 '24 10:09 honnibal

Hi @honnibal, just checking in to see if there’s been any update on the black version bump to address CVE-2024-21503. Thanks!

MedericCar avatar Nov 06 '24 11:11 MedericCar

Any updates on this?

ebk46 avatar Sep 09 '25 16:09 ebk46

Fixed, apologies for the delay.

honnibal avatar Nov 04 '25 14:11 honnibal

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 05 '25 00:12 github-actions[bot]