HTML injection in vulnerability reports (CVE-2025-8405 bypass)
HTML injection still renders in the code flow view of vulnerability reports, bypassing the fix for CVE-2025-8405. An attacker could trigger user actions through POST requests by injecting HTML with data attributes.
GitLab
Originally disclosed on GitLab
- Fixed in 2 months
- Disclosed after 2 months
⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.
HackerOne report #3461083 by joaxcar on 2025-12-10, assigned to @katwu:
Report | Attachments | How To Reproduce
Original Report
Summary
I am not completely sure what the fix for CVE-2025-8405 was (except for killing one gadget). But the vulnerability can still be triggered and other gadgets can be used.
for example this one
<div class="js-new-user-signups-cap-reached" data-dismiss-endpoint="/api/v4/user/[email protected]" data-defer-links="false" data-feature-id="1">
<a target=x href="https://joaxcar.com/fun/delay/vuln.html" class="js-close fixed-top gl-opacity-0 gl-h-full gl-w-full">
hack
</a>
</div>
Steps to reproduce
- Create a new Ultimate project
- Import this project into the new group
- Run a pipeline in the project
- Go to
/-/security/vulnerabilitiesand click the one on top - Go to
code flow - See that the payload renders in the code box
Impact
HTML injection that can trigger user actions through POST request. Bypass of CVE-2025-8405
What is the current bug behavior?
HTML still renders
What is the expected correct behavior?
HTML should not render
Output of checks
This bug happens on GitLab.com
Impact
HTML injection that can trigger user actions through POST request. Bypass of CVE-2025-8405
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sanitisation or escaping of HTML in the vulnerability report code flow view is incomplete, allowing other HTML gadgets to execute.
What the attacker needed
Ultimate project; Import crafted project; Run pipeline; Victim views vulnerability
How it was found
- Create a new Ultimate project
- Import the provided project into the new group
- Run a pipeline in the project
- Go to /-/security/vulnerabilities and click the one on top
- Go to code flow
- See that the payload renders in the code box
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
HTML injection is when a website displays user-supplied HTML as real code instead of plain text. Here, a security report's code view still renders HTML, so an attacker can craft a report that, when viewed, makes the victim's browser send requests (like POST) without their intent. This bypasses an earlier fix for the same issue.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.