Improper Restriction of Rendered UI Layers or Frames Affecting gitea package, versions <1.26.2-r3


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.03% (10th 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-CHAINGUARDLATEST-GITEA-17130552
  • published2 Jun 2026
  • disclosed22 May 2026

Introduced: 22 May 2026

NewCVE-2026-42502  (opens in a new tab)
CWE-1021  (opens in a new tab)

How to fix?

Upgrade Chainguard gitea to version 1.26.2-r3 or higher.

NVD Description

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

Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications that attempt to sanitize input HTML before rendering.