CVE-2026-5160
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v4.0•MEDIUM•Score: 5.1CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
- v4.0•MEDIUM•Score: 5.1CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Trends
Current EPSS score: 0.29%• Percentile: 21%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- chainguard•chainctl
< 0.2.321-r1
- chainguard•chainctl-fips
< 0.2.321-r1
- chainguard•crossplane-2.3-crank
< 2.3.3-r35
- chainguard•crossplane-aws-glacier-fips
< 2.6.0-r2
- chainguard•crossplane-aws-monolith
< 2.6.0-r3
- chainguard•crossplane-aws-monolith-fips
< 2.6.0-r4
- chainguard•crossplane-aws-xray-fips
< 2.6.0-r3
- chainguard•crossplane-fips-2.3-crank
< 2.3.3-r8
- chainguard•crossplane-provider-aws-accessanalyzer
< 2.6.0-r4
- chainguard•crossplane-provider-aws-accessanalyzer-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-account
< 2.6.0-r4
- chainguard•crossplane-provider-aws-account-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-acm
< 2.6.0-r5
- chainguard•crossplane-provider-aws-acm-fips
< 2.6.0-r6
- chainguard•crossplane-provider-aws-acmpca
< 2.6.0-r4
- chainguard•crossplane-provider-aws-acmpca-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-amp
< 2.6.0-r4
- chainguard•crossplane-provider-aws-amp-fips
< 2.6.0-r5
- chainguard•crossplane-provider-aws-apigateway
< 2.6.0-r4
- chainguard•crossplane-provider-aws-apigatewayv2
< 2.6.0-r3
- chainguard•crossplane-provider-aws-apigatewayv2-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-appautoscaling
< 2.6.0-r3
- chainguard•crossplane-provider-aws-appautoscaling-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-appconfig
< 2.6.0-r3
- chainguard•crossplane-provider-aws-appconfig-fips
< 2.6.0-r5
- chainguard•crossplane-provider-aws-appflow
< 2.6.0-r5
- chainguard•crossplane-provider-aws-appflow-fips
< 2.6.0-r8
- chainguard•crossplane-provider-aws-appintegrations
< 2.6.0-r4
- chainguard•crossplane-provider-aws-appintegrations-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-applicationinsights
< 2.6.0-r5
- chainguard•crossplane-provider-aws-applicationinsights-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-appmesh
< 2.6.0-r3
- chainguard•crossplane-provider-aws-appmesh-fips
< 2.6.0-r3
- chainguard•crossplane-provider-aws-apprunner
< 2.6.0-r4
- chainguard•crossplane-provider-aws-apprunner-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-appstream
< 2.6.0-r4
- chainguard•crossplane-provider-aws-appstream-fips
< 2.6.0-r3
- chainguard•crossplane-provider-aws-appsync
< 2.6.0-r3
- chainguard•crossplane-provider-aws-appsync-fips
< 2.6.0-r2
- chainguard•crossplane-provider-aws-athena
< 2.6.0-r6
- chainguard•crossplane-provider-aws-athena-fips
< 2.6.0-r7
- chainguard•crossplane-provider-aws-autoscaling
< 2.6.0-r6
- chainguard•crossplane-provider-aws-autoscaling-fips
< 2.6.0-r5
- chainguard•crossplane-provider-aws-autoscalingplans
< 2.6.0-r2
- chainguard•crossplane-provider-aws-autoscalingplans-fips
< 2.6.0-r4
- chainguard•crossplane-provider-aws-backup
< 2.6.0-r7
- chainguard•crossplane-provider-aws-backup-fips
< 2.6.0-r5
- chainguard•crossplane-provider-aws-batch
< 2.6.0-r4
- chainguard•crossplane-provider-aws-bedrock
< 2.6.0-r3
- chainguard•crossplane-provider-aws-bedrock-fips
< 2.6.0-r4
Showing first 50 affected entries in server-rendered view.
References (7)
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMYUINGOLDMARKRENDERERHTML-15838406
- https://github.com/yuin/goldmark/commit/cb46bbc4eca29d55aa9721e04ad207c23ccc44f9
- https://nvd.nist.gov/vuln/detail/CVE-2026-5160
- https://github.com/yuin/goldmark
- https://github.com/advisories/GHSA-c97m-vxhj-p7j6
- https://security-tracker.debian.org/tracker/CVE-2026-5160
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5160.json