CVE-2026-66353
MediumCVSS 5.3Summary
A Reflected XSS vulnerability in the doggo library (versions from 0.1.0 before 0.14.8) arises from improper input neutralization. Doggo.normalize_value/2 returns date field values wrapped in {:safe, ...} without escaping, so the value reaches the value attribute of the <input> unchanged. An attacker can exploit this through the ordinary Phoenix form round-trip, where a failed validation re-renders the submitted value.
Risk Assessment
An attacker can inject short HTML or JavaScript (up to 10 bytes) into the page, potentially leading to script execution in the victim's browser, session theft, or other XSS attacks.
Recommendation
Upgrade the doggo library to version 0.14.8 or later, which includes the fix. Temporarily avoid using <.field type="date"> with user-controlled data.
Original NVD description (English source)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in woylie doggo allows Reflected XSS. Doggo.normalize_value/2 in lib/doggo.ex returned date field values wrapped in {:safe, ...}, the Phoenix.HTML marker meaning "already escaped, emit verbatim", without escaping them, so the value reached the value attribute of the <input> rendered by the field component unchanged. Any application rendering <.field type="date"> over user-controlled params is affected through the ordinary Phoenix form round-trip, where a failed validation re-renders the submitted value. The pattern kept exactly the first ten bytes and discarded shorter values, capping a payload at ten bytes: enough to terminate the attribute and open an element or attach a short event handler, not enough to place attacker-chosen script inline. Only type="date" is affected. This issue affects doggo: from 0.1.0 before 0.14.8.

