CVE-2026-12228
Beschrijving NL
Een opgeslagen cross-site scripting (XSS) -kwetsbaarheid bestaat in het `POST /api/prompts/share` -eindpunt van parisneo/lollms (nieuwste versie). Het eindpunt slaat aanvaller-gecontroleerde `prompt_content` op in `DBDirectMessage.content` zonder server-side sanitization. Wanneer een slachtoffer de direct message (DM) -thread opent, wordt het bericht weergegeven door de DM-UI via `MessageContentRenderer`, dat `v-html` gebruikt om gerenderde HTML in de DOM in te voegen. De frontend ontsmettingsmiddel, dat op regex is gebaseerd, slaagt er niet in om door aanvallers gecontroleerde HTML volledig te ontsmetten, waardoor kwaadaardige payloads kunnen worden uitgevoerd in de browsercontext van het slachtoffer. Dit beveiligingslek stelt elke geverifieerde gebruiker in staat om een kwaadaardig prompt-share-bericht naar de inbox van een andere gebruiker te sturen, wat leidt tot willekeurige JavaScript-uitvoering, geverifieerde acties als slachtoffer, blootstelling van applicatiegegevens van dezelfde oorsprong en mogelijke overname van accounts.
Origineel (Engels) tonen
A stored cross-site scripting (XSS) vulnerability exists in the `POST /api/prompts/share` endpoint of parisneo/lollms (latest version). The endpoint stores attacker-controlled `prompt_content` into `DBDirectMessage.content` without server-side sanitization. When a victim opens the direct message (DM) thread, the message is rendered by the DM UI through `MessageContentRenderer`, which uses `v-html` to insert rendered HTML into the DOM. The frontend sanitizer, which is regex-based, fails to comprehensively sanitize attacker-controlled HTML, allowing malicious payloads to execute in the victim's browser context. This vulnerability enables any authenticated user to send a malicious prompt-share message to another user's inbox, leading to arbitrary JavaScript execution, authenticated actions as the victim, exposure of same-origin application data, and potential account takeover.