CVE-2026-33166: Improper Html Assignment Unsanitized

HTML content originating from a getter is directly assigned to an HTML setter without sanitization. This pattern typically indicates missing Cross-Site Scripting (XSS) protections when migrating untrusted data between data transfer objects. Ensure the input is sanitized using a dedicated HTML sanitization library before assignment.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-33166-improper-html-assignment-unsanitized --engine opengrep

Description

HTML content originating from a getter is directly assigned to an HTML setter without sanitization. This pattern typically indicates missing Cross-Site Scripting (XSS) protections when migrating untrusted data between data transfer objects. Ensure the input is sanitized using a dedicated HTML sanitization library before assignment.