Improper Encoding or Escaping of Output Affecting k3s package, versions <1.35.3.1-r8


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Encoding or Escaping of Output vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-K3S-16633890
  • published11 May 2026
  • disclosed7 May 2026

Introduced: 7 May 2026

NewCVE-2026-39826  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade Chainguard k3s to version 1.35.3.1-r8 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream k3s package and not the k3s package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.