Skip to main content
Public proof of conceptFix available

CVE-2026-40890

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

A public proof of concept exists; no exploitation attested.

  • Published2026-04-21
  • Fixed in0.0.0-20260411013819-759bbc3e3207
  • WeaknessCWE-125

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-04-2120:17CVE publishedNVD

Versions per branch

OSV · NVD
gomarkdown/markdown
BranchAffectedFixed in
0.0< 0.0.0-20260411013819-759bbc3e32070.0.0-20260411013819-759bbc3e3207
Gomarkdown markdown
BranchAffectedFixed in
2026.x< 2026-04-102026-04-10

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • gomarkdown markdown
    Affected
    • = < 759bbc3e32073c3bc4e25969c132fc520eda2778no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-04-21

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • fqWolfiall versions · fixed in 0.17.0-r4
  • fqChainguardall versions · fixed in 0.17.0-r4
  • golang-github-gomarkdown-markdownUbuntu:26.10all versions · no fixed version listed
  • golang-github-gomarkdown-markdownUbuntu:26.04:LTSall versions · no fixed version listed
  • golang-github-gomarkdown-markdownUbuntu:25.10all versions · no fixed version listed
  • golang-github-gomarkdown-markdownUbuntu:24.04:LTSall versions · no fixed version listed
  • golang-github-gomarkdown-markdownDebian:14all versions · fixed in 0.0~git20260725.8435af3-1
  • golang-github-gomarkdown-markdownDebian:13all versions · no fixed version listed

25 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-40890 Red Hat Product Security20 products fixed

    github.com/gomarkdown/markdown: github.com/gomarkdown/markdown: Denial of Service via malformed Markdown input

  • RHSA-2026:24539 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management for Kubernetes v2.15.3 security update

  • RHSA-2026:24503 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Multicluster Global Hub 1.7.1 security update

  • RHSA-2026:23345 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Multicluster Global Hub 1.6.2 security update

  • RHSA-2026:22347 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Multicluster Global Hub 1.4.5 security update

  • RHSA-2026:21769 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Multicluster Global Hub 1.5.4 security update

Full record on NVD

Fix

  1. Update gomarkdown/markdown to 0.0.0-20260411013819-759bbc3e3207
  2. Vendor fix Red Hat Product Security RHSA-2026:24539 · 4 productsBefore you apply this update, make sure all previously released errata that are relevant to your system are applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2026:24503 · 4 productsFor more details, see the Red Hat Advanced Cluster Management for Kubernetes documentation: https://docs.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.16/html/multicluster_global_hub/index
  4. Vendor fix Red Hat Product Security RHSA-2026:23345 · 4 productsFor more details, see the Red Hat Advanced Cluster Management for Kubernetes documentation: https://docs.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.15/html/multicluster_global_hub/index
  5. Vendor fix Red Hat Product Security RHSA-2026:22347 · 4 productsFor more details, see the Red Hat Advanced Cluster Management for Kubernetes documentation: https://docs.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.13/html/multicluster_global_hub/index
  6. Vendor fix Red Hat Product Security RHSA-2026:21769 · 4 productsFor more details, see the Red Hat Advanced Cluster Management for Kubernetes documentation: https://docs.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.14/html/multicluster_global_hub/index
  7. Workaround from the vendor Red Hat Product Security RHSA-2026:24539 · 184 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-04-21
Last Modified
2026-10-26
NVD status
Analyzed
MSRC Title
github.com/gomarkdown/markdown: Out-of-bounds Read in SmartypantsRenderer
GitHub Advisory
GHSA-77fj-vx54-gvh7

Frequently asked questions

What is CVE-2026-40890?

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.

Is CVE-2026-40890 actively exploited?

A proof-of-concept exploit exists for CVE-2026-40890, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-40890?

CVE-2026-40890 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running gomarkdown/markdown? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record