UBUNTU-CVE-2026-5160

Source
https://ubuntu.com/security/CVE-2026-5160
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-5160
Upstream
  • CVE-2026-5160
Published
2026-04-15T06:16:00Z
Modified
2026-05-20T16:26:50.620071740Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are vulnerable to Cross-site Scripting (XSS) due to improper ordering of URL validation and normalization. The renderer validates link destinations using a prefix-based check (IsDangerousURL) before resolving HTML entities. This allows an attacker to bypass protocol filtering by encoding dangerous schemes using HTML5 named character references. For example, a payload such as javascript:alert(1) is not recognized as dangerous during validation, leading to arbitrary script execution in the context of applications that render the URL.

References

Affected packages

Ubuntu:20.04:LTS
golang-github-yuin-goldmark

Package

Name
golang-github-yuin-goldmark
Purl
pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.1.12-1
1.1.12-2
1.1.18-1
1.1.21-1
1.1.23-1
1.1.25-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-yuin-goldmark-dev",
            "binary_version": "1.1.25-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"
Ubuntu:22.04:LTS
golang-github-yuin-goldmark

Package

Name
golang-github-yuin-goldmark
Purl
pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.3.2-1
1.4.2-1
1.4.3-1
1.4.4-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-yuin-goldmark-dev",
            "binary_version": "1.4.4-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"
Ubuntu:24.04:LTS
golang-github-yuin-goldmark

Package

Name
golang-github-yuin-goldmark
Purl
pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.5.4-1
1.5.6-1
1.6.0-1
1.7.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-yuin-goldmark-dev",
            "binary_version": "1.7.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"
Ubuntu:25.10
golang-github-yuin-goldmark

Package

Name
golang-github-yuin-goldmark
Purl
pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.4-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-yuin-goldmark-dev",
            "binary_version": "1.7.4-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"
Ubuntu:26.04:LTS
golang-github-yuin-goldmark

Package

Name
golang-github-yuin-goldmark
Purl
pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7.4-1
1.7.13-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-yuin-goldmark-dev",
            "binary_version": "1.7.13-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"