Incorrect Regular Expression Affecting tekton-chains package, versions <0.27.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Social Trends
EPSS
0.26% (18th 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 IDSNYK-WOLFILATEST-TEKTONCHAINS-17112417
  • published31 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 Wolfi tekton-chains to version 0.27.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tekton-chains package and not the tekton-chains package as distributed by Wolfi. See How to fix? for Wolfi 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.