ubuntu-cve-2020-26237
Vulnerability from osv_ubuntu
Published
2020-11-24 23:15
Modified
2026-05-20 14:52
Summary
Details

Highlight.js is a syntax highlighter written in JavaScript. Highlight.js versions before 9.18.2 and 10.1.2 are vulnerable to Prototype Pollution. A malicious HTML code block can be crafted that will result in prototype pollution of the base object's prototype during highlighting. If you allow users to insert custom HTML code blocks into your page/app via parsing Markdown code blocks (or similar) and do not filter the language names the user can provide you may be vulnerable. The pollution should just be harmless data but this can cause problems for applications not expecting these properties to exist and can result in strange behavior or application crashes, i.e. a potential DOS vector. If your website or application does not render user provided data it should be unaffected. Versions 9.18.2 and 10.1.2 and newer include fixes for this vulnerability. If you are using version 7 or 8 you are encouraged to upgrade to a newer release.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-highlight",
            "binary_version": "8.2+ds-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "libjs-highlight.js",
            "binary_version": "8.2+ds-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-highlight",
            "binary_version": "8.2+ds-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-highlight.js",
            "binary_version": "8.2+ds-4ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "highlight.js",
        "purl": "pkg:deb/ubuntu/highlight.js@8.2+ds-4ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.2+ds-4ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "8.2+ds-4build1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-highlight",
            "binary_version": "9.12.0+dfsg1-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "libjs-highlight.js",
            "binary_version": "9.12.0+dfsg1-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-highlight",
            "binary_version": "9.12.0+dfsg1-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-highlight.js",
            "binary_version": "9.12.0+dfsg1-4ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "highlight.js",
        "purl": "pkg:deb/ubuntu/highlight.js@9.12.0+dfsg1-4ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.12.0+dfsg1-4ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.12.0+dfsg1-3",
        "9.12.0+dfsg1-4"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-highlight",
            "binary_version": "9.12.0+dfsg1-5ubuntu0.1~esm1"
          },
          {
            "binary_name": "libjs-highlight.js",
            "binary_version": "9.12.0+dfsg1-5ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-highlight",
            "binary_version": "9.12.0+dfsg1-5ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-highlight.js",
            "binary_version": "9.12.0+dfsg1-5ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "highlight.js",
        "purl": "pkg:deb/ubuntu/highlight.js@9.12.0+dfsg1-5ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.12.0+dfsg1-5ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.12.0+dfsg1-4ubuntu1",
        "9.12.0+dfsg1-5"
      ]
    }
  ],
  "aliases": [],
  "details": "Highlight.js is a syntax highlighter written in JavaScript. Highlight.js versions before 9.18.2 and 10.1.2 are vulnerable to Prototype Pollution. A malicious HTML code block can be crafted that will result in prototype pollution of the base object\u0027s prototype during highlighting. If you allow users to insert custom HTML code blocks into your page/app via parsing Markdown code blocks (or similar) and do not filter the language names the user can provide you may be vulnerable. The pollution should just be harmless data but this can cause problems for applications not expecting these properties to exist and can result in strange behavior or application crashes, i.e. a potential DOS vector. If your website or application does not render user provided data it should be unaffected. Versions 9.18.2 and 10.1.2 and newer include fixes for this vulnerability. If you are using version 7 or 8 you are encouraged to upgrade to a newer release.",
  "id": "UBUNTU-CVE-2020-26237",
  "modified": "2026-05-20T14:52:28Z",
  "published": "2020-11-24T23:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2020-26237"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/highlightjs/highlight.js/pull/2636"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mx"
    },
    {
      "type": "REPORT",
      "url": "https://www.npmjs.com/package/highlight.js"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2020-26237"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2020-26237"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…