Skip to content

fix(ui): replace v-html with proper value escaping#1257

Merged
fjogeleit merged 1 commit intokyverno:mainfrom
r0binak:xss-fix
Apr 28, 2026
Merged

fix(ui): replace v-html with proper value escaping#1257
fjogeleit merged 1 commit intokyverno:mainfrom
r0binak:xss-fix

Conversation

@r0binak
Copy link
Copy Markdown
Contributor

@r0binak r0binak commented Apr 28, 2026

Replace v-html in ErrorBar.vue with {{ text }} to use Vue's safe text interpolation, and switch StartButton.vue to build plain-text error messages instead of raw HTML strings so that policy metadata values are never treated as markup.

Replace v-html in ErrorBar.vue with {{ text }} to use Vue's safe text interpolation, and switch `StartButton.vue` to build plain-text error messages instead of raw HTML strings so that policy metadata values are never treated as markup.

Signed-off-by: Sergey Kanibor <r081n4k@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 5.00%. Comparing base (96da127) to head (d90a9a4).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1257   +/-   ##
=====================================
  Coverage   5.00%   5.00%           
=====================================
  Files         55      55           
  Lines       2100    2100           
=====================================
  Hits         105     105           
  Misses      1958    1958           
  Partials      37      37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@r0binak r0binak changed the title Change v-html to interpolation for text display fix(ui): replace v-html with proper value escaping Apr 28, 2026
@fjogeleit fjogeleit merged commit 1df404a into kyverno:main Apr 28, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants