Is highlight.js 7.5 vulnerable?

npm · 1 release from 7.5.0 to 7.5.0 · latest highlight.js is 11.12.0 · checked 2 Nov 2026

Yes: 1 known advisory

Yes. highlight.js 7.5.0, the last 7.5 release, is affected by 1 known security advisory (1 medium), including CVE-2020-26237. Upgrade to 9.18.2 or later to fix all of them.

Upgrade with:npm install highlight.js@9.18.2

Is your project affected?

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

Advisories affecting highlight.js 7.5.0

  • MediumCVE-2020-26237GHSA-vfrc-7r7c-w9mx24 Nov 2020

    Prototype Pollution in highlight.js

    Affected
    <9.18.2 · >=10.0.0 <10.1.2
    Fixed in
    9.18.2, 10.1.2

Which of your client projects are still on highlight.js 7.5?

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

Other highlight.js versions

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