CVE-2026-25542: CWE-185: Incorrect Regular Expression in tektoncd pipeline
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.
AI Analysis
Technical Summary
Tekton Pipelines uses regexp.MatchString to verify trusted resource sources against configured patterns. Because regexp.MatchString returns true if the pattern matches anywhere in the string, unanchored patterns can be bypassed by attacker-controlled source strings that embed the trusted pattern as a substring. This incorrect regular expression usage (CWE-185) can cause unintended policy matches, potentially altering which verification mode or keys are applied to resources. Affected versions are from 0.43.0 up to and including 1.11.0. The vulnerability was published on 2026-04-21 with a CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N). No patch or remediation level is currently documented.
Potential Impact
The vulnerability allows an attacker with some level of privilege (PR:L) to bypass trusted resource verification policies by crafting source strings that contain the trusted pattern as a substring, causing unintended policy matches. This can lead to the application of incorrect verification modes or keys, potentially enabling integrity verification bypass or unauthorized resource acceptance. There is no direct confidentiality or availability impact reported. No known exploits have been observed in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should review and tighten their regular expression patterns to ensure anchoring and avoid unintentional substring matches. Avoid relying on unanchored patterns for critical verification policies. Monitor official Tekton Pipelines communications for updates on patches or recommended fixes.
CVE-2026-25542: CWE-185: Incorrect Regular Expression in tektoncd pipeline
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Tekton Pipelines uses regexp.MatchString to verify trusted resource sources against configured patterns. Because regexp.MatchString returns true if the pattern matches anywhere in the string, unanchored patterns can be bypassed by attacker-controlled source strings that embed the trusted pattern as a substring. This incorrect regular expression usage (CWE-185) can cause unintended policy matches, potentially altering which verification mode or keys are applied to resources. Affected versions are from 0.43.0 up to and including 1.11.0. The vulnerability was published on 2026-04-21 with a CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N). No patch or remediation level is currently documented.
Potential Impact
The vulnerability allows an attacker with some level of privilege (PR:L) to bypass trusted resource verification policies by crafting source strings that contain the trusted pattern as a substring, causing unintended policy matches. This can lead to the application of incorrect verification modes or keys, potentially enabling integrity verification bypass or unauthorized resource acceptance. There is no direct confidentiality or availability impact reported. No known exploits have been observed in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should review and tighten their regular expression patterns to ensure anchoring and avoid unintentional substring matches. Avoid relying on unanchored patterns for critical verification policies. Monitor official Tekton Pipelines communications for updates on patches or recommended fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-02T19:59:47.375Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e7a64f19fe3cd2cde569b8
Added to database: 4/21/2026, 4:31:11 PM
Last enriched: 4/21/2026, 4:47:20 PM
Last updated: 4/22/2026, 7:16:49 AM
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.