Description
Hi.Events before 1.11.0 contains a cross-site scripting vulnerability that allows authenticated attackers with event creation or edit permissions to inject arbitrary HTML and JavaScript by embedding a malicious event title containing the </script> sequence, which is not escaped by JSON.stringify() when embedded in inline script tags. Attackers can craft an event title that breaks out of the script context in the application/ld+json structured data block or server-side rehydrated state, causing the payload to execute in the browser of any user who views the public event page, including unauthenticated visitors and authenticated administrators.
Problem types
Product status
Any version before 1.11.0
Credits
Adam Młynarczyk
References
github.com/...Events/security/advisories/GHSA-2ggx-79g6-2jmj
github.com/HiEventsDev/Hi.Events/releases/tag/v.1.11.0-beta (Release Notes)
github.com/...Events/security/advisories/GHSA-2ggx-79g6-2jmj (GitHub Security Advisory (GHSA-2ggx-79g6-2jmj))
github.com/HiEventsDev/Hi.Events/pull/1260 (Pull Request)
github.com/...ommit/1e36b070771801ed7113255ef7b3a7f271a2a794 (Patch Commit)
www.vulncheck.com/...ia-event-title-json-stringify-injection