Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject </script> payload into analysed source or result file
-
DeliveryCodeChecker exporter writes field into script block
-
ExploitClosing tag ends script, following markup parsed as HTML
-
ExecutionVictim opens published report lacking CSP
-
Impactimg onerror handler executes script in viewer's browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that attacker-controlled text reaches one of three specific sinks - the report message, the checker name, or the source file path - carrying a literal </script> tag plus follow-on HTML, which the static exporter emits unescaped via json.dumps (html.escape was added only for file_content at html.py:179, leaving the adjacent filePath raw; bugviewer.js:197/buglist.js:118 then assign it to innerHTML). The attacker must control the analysed tree, a third-party result file ingested by report-converter, or hold PRODUCT_STORE in the cmd diff flow; the generators affected are plist-to-html, CodeChecker parse --export html, and CodeChecker cmd diff --output html in versions below 6.29.3. Exploitation is LIMITED by: a different user must separately open the published report (user interaction); the report must be served from a destination that sets no Content-Security-Policy, since a restrictive CSP (e.g. the documented Jenkins userContent location) blocks the inline onerror handler; and the API-boundary escaping from CVE-2021-44217 does not cover this static-export path. |
| Impact | This is a CWE-79 stored XSS in CodeChecker's static HTML report exporter (plist-to-html, parse --export html, cmd diff --output html), where json.dumps fails to escape '<', letting a closing </script> tag in the report message, checker name, or source file path break out of the script block. No NVD CVSS base score is provided (N/A). The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:P with all impact metrics N) describes severity but scores zero impact, which understates a confirmed script-execution XSS - I assess at least low integrity/confidentiality impact on the victim's browser. The vulnerability is not in CISA KEV (no active exploitation confirmed) and no EPSS score was supplied, so widespread-exploitation probability cannot be quantified. The vuln.today decision label is 'awaiting_data', i.e. not act_now or emergency. Real-world risk is moderate and strongly conditional rather than critical: exploitation requires a privileged input position (control of the analysed tree, an ingested third-party result file, or PRODUCT_STORE), a victim separately opening the generated report, and a publishing destination that sets no CSP. The advisory itself notes the documented Jenkins userContent/Gerrit destination serves content under a restrictive CSP that would block the inline onerror handler, likely neutralizing the one documented workflow - the danger is any OTHER destination lacking CSP, since the report emits none of its own. Treat as a patch-in-normal-cycle medium issue, not a drop-everything emergency. |
| Exploit ScenarioDerived | A malicious contributor (or author of a third-party result file ingested by report-converter) crafts a source file path, checker name, or diagnostic message containing a closing </script> tag followed by an <img onerror=...> payload; CodeChecker's static exporter writes it verbatim into the report's script block. When a reviewer later opens the published HTML report from a location without a Content-Security-Policy, Python-style HTML recovery parses the injected element and the onerror handler executes in the reviewer's browser. The GHSA advisory documents a confirmed reproduction against the 6.29.1 PyPI sdist, where document.title was changed in Chrome on both index.html and the per-file report page. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Stored cross-site scripting in Ericsson CodeChecker's static HTML report export (plist-to-html, CodeChecker parse --export html and CodeChecker cmd diff --output html) lets attacker-controlled text in the report message, the checker name or the source file path break out of the report's script block and inject live HTML. Versions below 6.29.3 are affected; the assessed severity is CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, reflecting that the attacker must already control the analysed tree, a third-party result file ingested by report-converter, or PRODUCT_STORE in the cmd diff flow, and that a different user must then open the published report. Impact is further bounded by the publication destination: the generated files carry no Content-Security-Policy of their own, but the documented Jenkins userContent location serves them under a restrictive CSP that would block an inline event handler, so exposure lands wherever the report is published without one. No public exploit code has been identified at time of analysis, though the advisory documents the reporter's own reproduction against the 6.29.1 sdist; this is a direct descendant of CVE-2021-44217.
RemediationAI
Upgrade to CodeChecker 6.29.3, the version boundary given in the vendor advisory (https://github.com/Ericsson/codechecker/security/advisories/GHSA-6w9g-677j-q2xq) and in EUVD-2026-118104; because PyPI metadata may lag the advisory, verify the installed version directly rather than relying on the resolver. Where upgrading is not immediately possible, serve generated reports only from a response header or server configuration that applies a restrictive Content-Security-Policy with a script-src that does not permit inline handlers or inline script, which neutralises the onerror payload at the cost of breaking any interactive behaviour the report bundle relies on; publishing into Jenkins userContent already supplies such a CSP and is likely safe as currently configured, but the generated files themselves set no policy, so any other hosting location is exposed. Treat report input as untrusted: restrict who can write to PRODUCT_STORE used by CodeChecker cmd diff, and avoid running plist-to-html or parse --export html over trees or third-party report-converter result files contributed by parties who are not trusted to author the code under analysis, since such a party is by definition the attacker in this pattern. The Thrift API-boundary escaping introduced for CVE-2021-44217 does not protect the static export path and should not be counted as a mitigation here.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-79 in the report generator: report fields are serialised into an inline <script> block with json.dumps, which does not escape the less-than character, so a literal closing script tag inside any serialised string terminates the script element and everything after it is parsed as markup by the browser. The Vue-based UI is not the vulnerable path here; the escaping added for CVE-2021-44217 sits at the Thrift API boundary in report_server.py because that UI renders the fields with v-html, and the static exporter never calls that API. cmd diff --output html does call it, but the reports arrive through getRunResults, whose checkerMsg and File.filePath were outside that fix's scope. Commit 65f36762 later added html.escape(file_content) at html.py:179 while leaving the filePath assignment on the preceding line raw; bugviewer.js:197 and buglist.js:118 then assign that value to innerHTML. A fourth shared sink exists: bugviewer.js builds an anchor from the checker url and name by string concatenation and assigns it to innerHTML. The reporter reproduced the issue against the codechecker 6.29.1 sdist from PyPI (not master): a plist naming a source file whose path contains markup, with a diagnostic message containing a closing script tag followed by an img with an onerror handler, produced index.html and the per-file report page both containing the closing tag, with Python's html.parser recovering real img elements bearing live onerror attributes and Chrome changing document.title on both pages; statistics.html from the same run was unchanged. No Content-Security-Policy is emitted on any generated file, which is what allows the injected handler to execute at publication destinations that do not set one.
Know when Codechecker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N
Attacker needs a privileged pipeline/input position (PR:L) and the victim must open the report (UI:R); injected script runs in the victim's browser, a different authority (S:C), with low C/I and no availability impact.
Primary rating from Vendor (ERIC).
CVSS VectorVendor: ERIC
Lifecycle Timeline
1DescriptionCVE.org
The HTML report that plist-to-html, CodeChecker parse --export html and CodeChecker cmd diff --output html generate puts the report message, the checker name and the source file path into a script block through json.dumps. json.dumps does not escape the less-than character, so a closing script tag in any of those three fields ends the script element and what follows is parsed as HTML.
The input author is whoever controls the analysed tree or a third-party result file that report-converter ingests, or who holds PRODUCT_STORE in the cmd diff flow. The viewer is somebody else: docs/jenkins_gerrit_integration.md documents writing the report into Jenkins userContent and posting its URL into a Gerrit review. One caveat worth stating up front is that Jenkins serves userContent under a restrictive CSP that would block an inline handler, so that destination is probably safe as configured. The generated report sets no CSP of its own, so the impact lands wherever it is published without one.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Codechecker
View allCodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. R
Authentication bypass in CodeChecker allows remote unauthenticated attackers to assign arbitrary permissions to any user
Stack-based buffer overflow in CodeChecker through 6.26.1 can be triggered by the local `CodeChecker log` command when i
CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. R
CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. R
Memory exhaustion and disk consumption in Ericsson CodeChecker's massStoreRun API endpoint allows authenticated users ho
Captured Ericsson CodeChecker session tokens remain usable after logout when the web server runs more than one API worke
Unbounded zlib decompression in CodeChecker 6.29.0's storeAnalysisStatistics Thrift-over-HTTP method lets an authenticat
Stack buffer overflow in Ericsson CodeChecker through 6.28.2 results from an off-by-two error introduced during the CVE-
Improper access control in Ericsson CodeChecker allows an authenticated user to delete all personal access tokens system
CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. R
EUVD-2026-118104
NVD
CVE.org
EPSS
GitHub
Exploit-DB