Incorrect Regular Expression Affecting tkn package, versions <0.44.1-r4


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (12th 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 Incorrect Regular Expression vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-TKN-16535602
  • published8 May 2026
  • disclosed21 Apr 2026

Introduced: 21 Apr 2026

CVE-2026-25542  (opens in a new tab)
CWE-185  (opens in a new tab)

How to fix?

Upgrade Chainguard tkn to version 0.44.1-r4 or higher.

NVD Description

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

Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. From 0.43.0 to 1.11.0, trusted resources verification policies match a resource source string (refSource.URI) against spec.resources[].pattern using regexp.MatchString. In Go, regexp.MatchString reports a match if the pattern matches anywhere in the string, so common unanchored patterns (including examples in tekton documentation) can be bypassed by attacker-controlled source strings that contain the trusted pattern as a substring. This can cause an unintended policy match and change which verification mode/keys apply.