Reading list
Learn XSS from real reports
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
12 reports, easiest first.
-
WWBN AVideo footer alerts cross-site scripting (XSS) vulnerability
The footer alerts functionality in AVideo does not properly sanitise the msg, success, and toast parameters, allowing an attacker to inject JavaScript. An attacker could trick an authenticated user into clicking a crafted link to execute arbitrary JavaScript, potentially taking over an administrator account.
Cross-site scripting (XSS) is when a website takes input from a user and puts it into a page without cleaning it, so an attacker can make the page run their own JavaScript. Here, the msg, success, and toast parameters are placed into a script tag without proper cleaning, so an attacker can break out of the script and run any code. This could let them steal cookies or perform actions as the victim.
The lesson. The application only replaces double quotes in the msg, success, and toast parameters but does not prevent closing the script tag, allowing injection of arbitrary JavaScript.
-
I Found an Unauthenticated XSS in a WordPress Hotel Plugin — Then Someone Beat Me to It by a Week
The nd-booking WordPress plugin reflected the guest count URL parameter into an HTML attribute without proper escaping, allowing an attacker to inject attributes and execute JavaScript. An attacker could send a crafted link to a logged-in administrator and run code in their session.
The plugin took a number from the web address and put it directly into the page's HTML without cleaning it properly. Because it didn't escape quotes, an attacker could add their own code to the page. When someone visits a specially crafted link, that code runs in their browser.
The lesson. The plugin used sanitize_text_field() on input but failed to escape the value with esc_attr() when printing it into an HTML attribute, allowing attribute injection.
-
Stored XSS in main page of a project caused by arbitrary script payload in group "Default initial branch name"
A stored XSS vulnerability existed in GitLab's project main page because the group's 'default initial branch name' setting was not sanitised when displayed in example terminal commands. An attacker could inject arbitrary JavaScript that executed when a victim (at least a Developer) visited the project page, potentially leading to account takeover or, on self-hosted instances without CSP, full instance compromise.
When you create a new project, GitLab shows some example commands to help you set up your code repository. One of those commands includes the group's default branch name, which the attacker can set to something malicious like a script. Because GitLab didn't clean this input before putting it on the page, the script runs in the victim's browser when they view the project, letting the attacker do things as the victim.
The lesson. The 'default initial branch name' setting was not sanitised before being included in the HTML of the project main page.
-
CVE-2026-42197: Stored XSS via User Profile → Admin Session Hij
A stored cross-site scripting flaw in the RELATE learning management system let any enrolled student inject JavaScript through their profile name fields, which was then rendered unsanitised in the admin participation list. When an administrator viewed that page, the script executed in their session, allowing the attacker to steal the admin's session cookie and take over the account.
This is a stored cross-site scripting (XSS) bug. A student could type a small script into their profile name, and the website saved it without cleaning it up. Later, when an administrator looked at a list of participants, the script ran in the admin's browser and could steal the admin's login cookie, letting the attacker act as the admin.
The lesson. The admin display function used mark_safe() together with Python's % string formatting on unsanitised user input from get_full_name(), bypassing Django's automatic HTML escaping.
-
Reflected cross-site scripting vulnerability in Crealogix EBICS implementation
The EBICS server reflected the unsanitised EBICS version from the request into an HTML error page, allowing an attacker to execute JavaScript in the victim's browser. An attacker could craft a link that, when clicked, runs arbitrary script in the context of the EBICS server's origin.
The EBICS server took a value from the request (the version) and put it directly into an error page without cleaning it. Because the page was served as HTML, a malicious value could include a script that runs in the victim's browser when they visit a crafted link. This is called reflected cross-site scripting (XSS).
The lesson. Likely the server echoed the user-supplied EBICS version into an HTML error response without context-appropriate escaping.
-
BMO: Persistent XSS via Git commit messages in comments
A format hook in Bugzilla's comment system failed to escape HTML in Git commit messages, allowing an attacker to inject JavaScript that executes when a comment is viewed or previewed.
When you type a comment, the website usually converts special characters like < and > into safe text so they can't run code. Here, a feature that automatically links Git commit messages forgot to do that conversion, so an attacker could include a script that runs in the browser of anyone who views the comment.
The lesson. The format hook responsible for linkifying Git commit messages did not escape HTML entities in its output.
-
Stored XSS in Conversations (both client and admin) when Active Conversation Editor is set to "Rich Text"
The Conversations module in concrete5 allowed stored cross-site scripting when the Rich Text editor was used, because the Source button let users save script tags directly. An attacker could post a comment containing malicious JavaScript that executed for any visitor and for administrators viewing the Messages screen.
A comment box let people paste raw HTML, including a script tag, and the site saved it without cleaning it up. When anyone later viewed that comment, their browser ran the attacker's script.
-
WWBN AVideo channelBody.php user name cross-site scripting (XSS) vulnerability
The user name field in AVideo's channel page is not properly sanitised, allowing an attacker to inject JavaScript through an attribute in an image tag. An attacker could execute arbitrary JavaScript in a victim's browser, potentially taking over an administrator account.
Cross-site scripting (XSS) is a flaw where a website shows user-supplied text without making it safe, so a malicious user can sneak in code that runs in other people's browsers. Here, the user name is placed inside an image tag, and by breaking out of the attribute an attacker can add an event handler that runs JavaScript when the image loads. Anyone who views the attacker's channel page runs that code.
-
Add <a href=> into our name and bypass "//" being used in URL to create a valid URL + custom image on snippets
GitLab allowed certain HTML tags in a user's name, which were rendered when viewing a snippet. An attacker could set a name containing a link and image to trick users into visiting a malicious site or a rogue OAuth application.
A user's display name was not properly cleaned before being shown on a page. This meant someone could put a clickable link and an image in their name, so when other people clicked the name they were sent to a bad website. The fix was to show the name as plain text instead of interpreting it as HTML.
The lesson. The application used a sanitisation method that marked the output as safe HTML, allowing certain tags like links to be rendered.
-
MedDream PACS Premium modifyAutopurgeFilter reflected cross-site scripting (XSS) vulnerability
A reflected cross-site scripting vulnerability exists in the modifyAutopurgeFilter.php script of MedDream PACS Premium, where the key parameter is written into HTML output without sanitisation. An attacker could craft a malicious URL that, when visited by an authenticated user, executes arbitrary JavaScript in the user's browser.
Cross-site scripting (XSS) is a flaw where a website inserts user-supplied text into its pages without cleaning it, so an attacker can slip in JavaScript code. When a victim opens a specially crafted link, that code runs in their browser as if it came from the trusted site. Here, the page that shows an error message for a missing filter includes the attacker's text directly, allowing script execution.
The lesson. The application takes the user-controlled 'key' parameter, splits it, and prints the 'pattern' part into an HTML error message without encoding or sanitising it.
-
MedDream PACS Premium modifyAnonymize reflected cross-site scripting (XSS) vulnerability
The name parameter of the modifyAnonymize script is written into the HTML page without sanitisation, so a crafted URL causes script to run in the victim's browser. An attacker could send such a link to execute arbitrary JavaScript in the context of the PACS site.
The page takes a value from the web address and puts it straight into the page it sends back. If that value is a piece of script, the browser runs it as if the site itself had written it. An attacker only has to trick someone into opening a prepared link.
The lesson. The script echoes the user-supplied name parameter into several HTML output locations without encoding or sanitising it.
-
GHSL-2026-030: Stored cross-site scripting (XSS) in NocoDB leading to potential unauthorized script execution - CVE-2026-28401
NocoDB's rich text cells parsed user content through a Markdown parser with HTML passthrough and rendered it with Vue's v-html directive without sanitisation. An authenticated attacker could inject malicious HTML/JavaScript that executes in the browser of any user viewing the affected record, potentially leading to account takeover.
Rich text fields let users format text, and NocoDB converts that text from Markdown into HTML. Because it allowed raw HTML through and inserted it into the page without cleaning it, a user could hide a small script in a cell. When another user opened that record, the script ran in their browser as if it were part of the site.
The lesson. The Markdown parser was configured to allow raw HTML and its output was inserted into the DOM with Vue's v-html directive without sanitisation.