Skip to content
MediumVulnerability

CVE-2026-12228: parisneo/lollms stored XSS through POST /api/prompts/share endpoint

Identifier
CVE-2026-12228
Published
Record updated
View JSON

Summary

CVE-2026-12228 is a stored cross-site scripting flaw in the `POST /api/prompts/share` endpoint of parisneo/lollms (latest version). The endpoint saves attacker-controlled `prompt_content` into `DBDirectMessage.content` without server-side sanitization, and the DM UI renders it through `v-html` in `MessageContentRenderer`, where a regex-based frontend sanitizer fails to fully neutralize HTML. Any authenticated user can send such a message to another user's inbox, enabling arbitrary JavaScript execution, actions as the victim, exposure of same-origin application data, and potential account takeover.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.