CVE catalog

CVE-2024-28243

KaTeX vulnerabilities

[CVE catalog]

KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\edef` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. This can be used as an availability attack, where e.g. a client rendering another user's KaTeX input will be unable to use the site due to memory overflow, tying up the main thread, or stack overflow. Upgrade to KaTeX v0.16.10 to remove this vulnerability.

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.41% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "node-katex",
      "status": "fixed",
      "release": "sid",
      "version": "0.16.10+~cs6.1.0-10"
    },
    {
      "name": "node-katex",
      "status": "fixed",
      "release": "forky",
      "version": "0.16.10+~cs6.1.0-10"
    },
    {
      "name": "node-katex",
      "status": "fixed",
      "release": "trixie",
      "version": "0.16.10+~cs6.1.0-2"
    },
    {
      "name": "node-katex",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "0.16.4+~cs6.1.0-1"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1067805,
      "name": "node-katex",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "0.16.10+~cs6.1.0-1"
    },
    {
      "bug": 1067805,
      "name": "node-katex",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "0.16.10+~cs6.1.0-1"
    },
    {
      "bug": 1067805,
      "name": "node-katex",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "0.16.10+~cs6.1.0-1"
    },
    {
      "bug": 1067805,
      "name": "node-katex",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": ""
    }
  ],
  "distribution_packages": [
    {
      "name": "node-katex",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "not yet fixed"
    },
    {
      "name": "node-katex",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1"
    },
    {
      "name": "fonts-katex",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1"
    },
    {
      "name": "katex",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1"
    },
    {
      "name": "libjs-katex",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1"
    },
    {
      "name": "node-katex",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "0.16.4+~cs6.1.0-1",
        "0.16.10+~cs6.1.0-2"
      ],
      "ecosystem": "deb",
      "fixed_version": "0.16.10+~cs6.1.0-2ubuntu0.24.04.1~esm1",
      "provider_record_id": "USN-7572-1"
    },
    {
      "name": "node-katex",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.13.11+~cs6.0.0-2ubuntu0.1~esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "0.10.2+dfsg-8",
        "0.10.2+dfsg-9",
        "0.10.2+dfsg-10",
        "0.13.11+~cs6.0.0-2"
      ],
      "ecosystem": "deb",
      "fixed_version": "0.13.11+~cs6.0.0-2ubuntu0.1~esm1",
      "provider_record_id": "UBUNTU-CVE-2024-28243"
    }
  ]
}

[Debian bug #1067805]

Publisher notes

[bookworm] node-katex: Minor issue

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [fonts-katex]Unknown

    Source package: [node-katex]

    Details (2)
    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

  • [katex]Unknown

    Source package: [node-katex]

    Details (2)
    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

  • [libjs-katex]Unknown

    Source package: [node-katex]

    Details (2)
    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

    • 0.16.4+~cs6.1.0-1 · all · bookworm

      Affected

      usn · node-katex · debian · bookworm; usn · node-katex · debian · 12

[Debian 13 (Trixie)]

  • [fonts-katex]Unknown

    Source package: [node-katex]

    Details (2)
    • 0.16.10+~cs6.1.0-2 · all · trixie

      Fixed · Fixed: 0.16.10+~cs6.1.0-1

      usn · node-katex · debian · 13

    • 0.16.10+~cs6.1.0-2 · all · trixie

      Fixed · Fixed: 0.16.10+~cs6.1.0-1

      usn · node-katex · debian · 13

  • [katex]Unknown

    Source package: [node-katex]

    Details (2)
    • 0.16.10+~cs6.1.0-2 · all · trixie

      Fixed · Fixed: 0.16.10+~cs6.1.0-1

      usn · node-katex · debian · 13

    • 0.16.10+~cs6.1.0-2 · all · trixie

      Fixed · Fixed: 0.16.10+~cs6.1.0-1

      usn · node-katex · debian · 13

  • [libjs-katex]Unknown

    Source package: [node-katex]

    Details (2)
    • 0.16.10+~cs6.1.0-2 · all · trixie

      Fixed · Fixed: 0.16.10+~cs6.1.0-1

      usn · node-katex · debian · 13

    • 0.16.10+~cs6.1.0-2 · all · trixie

      Fixed · Fixed: 0.16.10+~cs6.1.0-1

      usn · node-katex · debian · 13

Observed:

References