Is numpy 1.18 vulnerable?

PyPI · 6 releases from 1.18.0 to 1.18.5 · latest numpy is 2.5.5 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. numpy 1.18.5, the last 1.18 release, is affected by 4 known security advisories (1 high, 3 medium), including CVE-2021-41495, CVE-2021-41496, CVE-2021-33430. Upgrade to 1.22 or later to fix all of them.

Upgrade with:pip install 'numpy>=1.22'

Is your project on an affected numpy?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting numpy 1.18.5

  • HighCVE-2021-41495GHSA-5545-2q6w-2gh68 Feb 2022

    NumPy NULL Pointer Dereference

    Affected
    <1.19
    Fixed in
    1.19
  • MediumCVE-2021-41496GHSA-f7c7-j99h-c22f8 Feb 2022

    Buffer Copy without Checking Size of Input in NumPy

    Affected
    <1.19
    Fixed in
    1.19
  • MediumCVE-2021-33430GHSA-6p56-wp2h-9hxr7 Jan 2022

    NumPy Buffer Overflow (Disputed)

    Affected
    >=1.9.0 <1.21
    Fixed in
    1.21
  • MediumCVE-2021-34141GHSA-fpfv-jqm9-f5jm18 Dec 2021

    Incorrect Comparison in NumPy

    Affected
    <1.22
    Fixed in
    1.22

Every numpy 1.18.x release

Affected: 1.18.0 to 1.18.5. Latest numpy: 2.5.5.

VersionKnown advisories
numpy 1.18.5CVE-2021-41495, CVE-2021-41496, CVE-2021-33430, CVE-2021-34141
numpy 1.18.4CVE-2021-41495, CVE-2021-41496, CVE-2021-33430, CVE-2021-34141
numpy 1.18.3CVE-2021-41495, CVE-2021-41496, CVE-2021-33430, CVE-2021-34141
numpy 1.18.2CVE-2021-41495, CVE-2021-41496, CVE-2021-33430, CVE-2021-34141
numpy 1.18.1CVE-2021-41495, CVE-2021-41496, CVE-2021-33430, CVE-2021-34141
numpy 1.18.0CVE-2021-41495, CVE-2021-41496, CVE-2021-33430, CVE-2021-34141

Which of your client projects are still on numpy 1.18?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact numpy version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other numpy versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.