Skip to content
Heist/ feed
Back to feed
High

golang-github-gomarkdown-markdown — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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.

Products
golang-github-gomarkdown-markdown
Affected versions
0.0~git20220731.dcdaee8-2, 0.0~git20231115.a660076-1, 0.0~git20260725.8435af3-1
Fixed versions
Not specified
CVEs
CVE-2026-40890
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:25 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-40890

core-osv · Original source

Published 21 Apr 2026, 20:17 UTC

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.

osv:UBUNTU-CVE-2026-40890

golang-github-gomarkdown-markdown

Fixed versions: Not specified

golang-github-gomarkdown-markdown

Fixed versions: Not specified

golang-github-gomarkdown-markdown

Fixed versions: Not specified

golang-github-gomarkdown-markdown

Fixed versions: Not specified

Complete source record
{
  "id": "9469ed03ff657dc8567478bf7b99404fc813c7f2ac496965415fe803bfaf03d1",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40890",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-40890",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-40890",
    "products": [
      {
        "name": {
          "value": "golang-github-gomarkdown-markdown",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20220731.dcdaee8-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0~git20231115.a660076-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-gomarkdown-markdown",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20231115.a660076-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-gomarkdown-markdown",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20231115.a660076-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.0~git20260725.8435af3-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-gomarkdown-markdown",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20231115.a660076-1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-40890",
      "aliases": [
        "UBUNTU-CVE-2026-40890"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-gomarkdown-markdown",
            "purl": "pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.0~git20220731.dcdaee8-2",
            "0.0~git20231115.a660076-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40890.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-gomarkdown-markdown-dev",
                "binary_version": "0.0~git20231115.a660076-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-gomarkdown-markdown",
            "purl": "pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.0~git20231115.a660076-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40890.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-gomarkdown-markdown-dev",
                "binary_version": "0.0~git20231115.a660076-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-gomarkdown-markdown",
            "purl": "pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.0~git20231115.a660076-1",
            "0.0~git20260725.8435af3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40890.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-gomarkdown-markdown-dev",
                "binary_version": "0.0~git20260725.8435af3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-gomarkdown-markdown",
            "purl": "pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.0~git20231115.a660076-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40890.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-gomarkdown-markdown-dev",
                "binary_version": "0.0~git20231115.a660076-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:54:54.185653302Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40890"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40890",
        "https://www.cve.org/CVERecord?id=CVE-2026-40890",
        "https://github.com/gomarkdown/markdown/security/advisories/GHSA-77fj-vx54-gvh7",
        "https://github.com/gomarkdown/markdown/commit/759bbc3e32073c3bc4e25969c132fc520eda2778"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40890",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 353584,
  "published_at": "2026-04-21T20:17:00+00:00"
}