Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M

CVE-2026-40890github.com/gomarkdown/markdown: Out-of-bounds Read in SmartypantsRenderer

High 7.5

In plain English

A high-severity out-of-bounds read in markdown from gomarkdown. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.3%top 71.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

The package `github.com/gomarkdown/markdown` is a Go library for parsing Markdown text and rendering as HTML. Processing a malformed input containing a < character that is not followed by a > character anywhere in the remaining text with a SmartypantsRenderer will lead to Out of Bounds read or a panic. This vulnerability is fixed with commit 759bbc3e32073c3bc4e25969c132fc520eda2778.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-gomarkdown-markdownno fix listedDEBIAN-CVE-2026-40890
Debian:13golang-github-gomarkdown-markdownno fix listedDEBIAN-CVE-2026-40890
Debian:14golang-github-gomarkdown-markdown0.0~git20260725.8435af3-1DEBIAN-CVE-2026-40890
Gogithub.com/gomarkdown/markdown0.0.0-20260411013819-759bbc3e3207GHSA-77fj-vx54-gvh7
Gogithub.com/gomarkdown/markdown0.0.0-20260411013819-759bbc3e3207GO-2026-5208
Ubuntu:24.04:LTSgolang-github-gomarkdown-markdownno fix listedUBUNTU-CVE-2026-40890
Ubuntu:25.10golang-github-gomarkdown-markdownno fix listedUBUNTU-CVE-2026-40890
Ubuntu:26.04:LTSgolang-github-gomarkdown-markdownno fix listedUBUNTU-CVE-2026-40890
Ubuntu:26.10golang-github-gomarkdown-markdownno fix listedUBUNTU-CVE-2026-40890

Affected products (as reported)

VendorProductVersions
gomarkdown markdown < 759bbc3e32073c3bc4e25969c132fc520eda2778

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References