Description
Hydro @hydrooj/ui-default before 4.59.1 contains a stored cross-site scripting vulnerability that allows registered users to inject script by placing double quotes in language- class tokens within markdown-it-xss.ts. Attackers can store a payload in their profile bio that executes when administrators or other users view it, stealing the non-httpOnly sid session cookie for session hijacking.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| hydro-dev | @hydrooj/ui-default | < 4.59.1 | 4.59.1 |
References
- https://github.com/hydro-dev/Hydro/commit/3bae56fe8edddff12346bcb1c8281269c94688d8 patch
- https://github.com/hydro-dev/Hydro/blob/3c8286dd1350fcd00412e95d5b056dbfed64edda/packages/ui-default/backendlib/markdown-it-xss.ts#L150-L157 technical-description
- https://vul.yulun.ac.cn/20261107/hydro/ third-party-advisory
- VulnCheck Advisory: Hydro @hydrooj/ui-default before 4.59.1 Stored XSS via Markdown language- Class third-party-advisory