{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-135301","assignerOrgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","state":"PUBLISHED","assignerShortName":"CIRCL","dateReserved":"2026-11-23T16:36:36.621Z","datePublished":"2026-11-23T16:36:56.150Z","dateUpdated":"2026-11-23T19:40:20.961Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"The AIL Framework web application contains a stored cross-site scripting (XSS) vulnerability in its dashboard templates. In the home dashboard (dashboard.html), the hunter trackers dashboard (trackers_dashboard.html), and the objects dashboard (objs_dashboard.html), object global identifiers (GIDs) derived from filenames or message IDs were interpolated directly into inline JavaScript event handler attributes (onmouseenter/onmouseleave) within HTML anchor tags. Because the GID value was placed inside a single-quoted JavaScript string literal within an HTML attribute, an attacker who could control the GID value (for example, by crafting a filename or message ID containing a single quote) could break out of the string context and inject arbitrary JavaScript code that would execute in the context of any user viewing the dashboard.\n\nAdditionally, in dynamically generated JavaScript code within the same templates, object identifiers were concatenated into HTML strings and inline event handler registrations without sufficient encoding, presenting a similar injection surface. The AJAX tooltip lookup also concatenated the raw GID into a URL without encoding, which could be leveraged for further manipulation.\n\nThe vulnerability requires that an attacker be able to influence the GID value stored in the application (e.g., through a file upload or message creation with a crafted name) and that a victim subsequently visits one of the affected dashboard pages and hovers over the affected object link. Successful exploitation allows execution of arbitrary JavaScript in the victim's browser session, potentially leading to session hijacking, data exfiltration, or unauthorized actions performed on behalf of the victim."}],"affected":[{"vendor":"ail-project","product":"ail-framework","cpes":["cpe:2.3:a:ail-project:ail-framework:*:*:*:*:*:*:*:*"],"versions":[{"version":"0","status":"affected","versionType":"semver","lessThanOrEqual":"7.1"}],"modules":["dashboard (home)","hunter trackers dashboard","objects dashboard","helper.js (tooltip logic)"],"programFiles":["var/www/static/js/helper.js","var/www/templates/dashboard/dashboard.html","var/www/templates/hunter/trackers_dashboard.html","var/www/templates/objects/objs_dashboard.html"],"repo":"https://github.com/ail-project/ail-framework"}],"references":[{"url":"https://github.com/ail-project/ail-framework/commit/76461974b44a4b5df57edfff89823630b862917b","name":"Security patch","tags":["patch"]}],"x_gcve":[{"recordType":"advisory","extensions":{"bcp-05-x-01":{"ai_annotations":[{"scope":"record","gna_source":1,"tags":["ai-computer-assisted:llm-generated","ai-computer-assisted:classification"],"description":"Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.","ai_level":"generated","review_status":"full","models":[{"name":"qwen3.8:27b","gna_source":1,"source":"ollama","identifier":"qwen3.8:27b"}]}]},"bcp-05-x-02":{"x_patch2vuln":{"generator":"patch2vuln.py","generatedAt":"2026-11-23T16:27:15.503491Z","model":"qwen3.8:27b","source":"https://github.com/ail-project/ail-framework/commit/76461974b44a4b5df57edfff89823630b862917b.patch","patchSha256":"8f5e67ee8931ae70f834fa30988073e0e3e66c3c08b7d7fea9f1a5e17b2c7830","patchTruncated":false,"commit":"76461974b44a4b5df57edfff89823630b862917b","subject":"chg: [security] prevent stored XSS in dashboard object","patches":[{"source":"https://github.com/ail-project/ail-framework/commit/76461974b44a4b5df57edfff89823630b862917b.patch","sourceUrl":"https://github.com/ail-project/ail-framework/commit/76461974b44a4b5df57edfff89823630b862917b.patch","patchSha256":"8f5e67ee8931ae70f834fa30988073e0e3e66c3c08b7d7fea9f1a5e17b2c7830","commit":"76461974b44a4b5df57edfff89823630b862917b","subject":"chg: [security] prevent stored XSS in dashboard object","date":"Mon, 23 Nov 2026 17:14:36 +0100","retrievedAt":"2026-11-23T16:26:31.408028Z"}],"confidence":"medium","assumptions":["The attacker is assumed to have authenticated access (PR:L) to create or modify objects with controlled GID values (filenames, message IDs). If an unauthenticated upload or creation path exists, PR could be N.","The GID values are assumed to be attacker-influenceable through filenames or message IDs as stated in the commit message; the exact input vector is not fully specified in the patch.","UI:P is assumed because the victim must hover over the affected link; if the tooltip triggers on page load or via a different mechanism, UI could be N.","No specific affected version range is identified from the patch; the version boundary is unknown.","The CAPEC-1 mapping is the closest standard pattern; a more specific sub-pattern for stored XSS via JavaScript-in-HTML-attribute injection is not separately enumerated in CAPEC.","The commit message references 'Grant and ENISA AI team' as reporters; the exact role (finder vs. reporter) is interpreted as reporter based on the word 'Reported by'."],"fixSummary":"The vulnerability is remediated by eliminating the injection of untrusted GID values into inline JavaScript event handler contexts. Inline onmouseenter/onmouseleave attributes are replaced with a data-object-tooltip-gid HTML data attribute, and event handling is moved to delegated jQuery listeners in helper.js that read the value via the DOM dataset API, which does not parse the value as JavaScript. The AJAX tooltip URL now applies encodeURIComponent to the GID. Dynamically generated DOM elements are built using jQuery's .attr() and .text() methods instead of string concatenation, ensuring proper HTML and text encoding.","patchSummary":"In helper.js, two delegated event listeners (mouseenter, mouseleave) are added for elements matching a[data-object-tooltip-gid], calling show_obj_tooltip with this.dataset.objectTooltipGid. The show_obj_tooltip function now applies encodeURIComponent(obj_gid) when building the $.getJSON URL. In dashboard.html, trackers_dashboard.html, and objs_dashboard.html, all inline onmouseenter/onmouseenter attributes containing interpolated GID values are replaced with data-object-tooltip-gid attributes. In the JavaScript create_obj_svg helper functions, inline .on('mouseenter'/'mouseleave') registrations are replaced with .attr('data-object-tooltip-gid', obj_gid). In the row-building code, string-concatenated HTML for anchor elements is replaced with jQuery DOM API calls: $('<a>').attr('href', obj['link']).text(obj['id']) and $('<td>').css('word-break','break-all').append(objectLink).","credits":[{"lang":"en","value":"terrtia","type":"remediation developer"}],"cvssRationale":"AV:N: The vulnerability is in a web application accessible over the network. AC:L: Exploitation requires only crafting a GID value with a quote character; no race conditions or special configurations are needed. AT:N: No special attack target conditions. PR:L: The attacker needs authenticated access to create or modify objects with controlled GIDs (filenames, message IDs) in the AIL Framework. UI:P: The victim must hover over the affected object link on a dashboard page, a normal browsing interaction the user is not aware is part of an attack. VC:L: Successful XSS allows reading session cookies, tokens, and page data. VI:L: The attacker can perform actions on behalf of the victim (form submission, data modification). VA:N: No impact on application availability. SC/SI/SA:N: The impact is confined to the victim's browser session; no separate system is compromised.","ssvc":{"version":"2.0.3","role":"Supplier","timestamp":"2026-11-23T16:27:15Z","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}]},"weaknessRationale":[{"cweId":"CWE-79","rationale":"The patch explicitly addresses stored XSS: untrusted GID values (from filenames or message IDs) were interpolated into inline JavaScript event handler attributes without encoding, allowing quote-based breakout and arbitrary script injection. The fix removes the JavaScript-context injection by using data attributes and DOM APIs."},{"cweId":"CWE-74","rationale":"The GID value was injected into a downstream JavaScript execution context (inline event handler) without neutralization of special characters (single quotes). This is the parent category of CWE-79 and applies when the exact injection context is a JavaScript string within an HTML attribute."}],"capecRationale":[{"capecId":"CAPEC-1","rationale":"The patch directly addresses a stored XSS attack pattern where attacker-controlled data (filenames, message IDs) is rendered in a JavaScript context within HTML attributes. The attacker injects a quote character to break out of the string literal and execute arbitrary script. CAPEC-1 is the closest standard attack pattern for this class of vulnerability. The specific sub-variant is stored XSS via improper output encoding in a JavaScript-in-HTML-attribute context."}],"draft":false,"modelComparison":{"selectedModel":"qwen3.8:27b","selectionMethod":"deterministic-consensus-v1","selectionNotice":"The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required.","rankings":[{"model":"qwen3.8:27b","score":6,"agreementScore":11,"confidence":"medium","assumptionCount":6}],"potentialErrors":[]}}},"bcp-05-x-03":{"x_timeline":{"events":[{"type":"fix-developed","timestamp":"2026-11-23T16:14:36Z","description":"Corrective change authored (76461974b44a4b5df57edfff89823630b862917b): chg: [security] prevent stored XSS in dashboard object","references":["https://github.com/ail-project/ail-framework/commit/76461974b44a4b5df57edfff89823630b862917b.patch"],"id":"evt-fix-developed-1"},{"id":"evt-fix-available-1","type":"fix-available","timestamp":"2026-11-23T16:26:31.408028Z","description":"Patch retrieved from the supplied URL; retrieval time is used as the default availability time.","references":["https://github.com/ail-project/ail-framework/commit/76461974b44a4b5df57edfff89823630b862917b.patch"]}]}}},"vulnId":"gcve-1-2026-20354"}],"title":"Stored Cross-Site Scripting (XSS) in AIL Framework Dashboard Object Tooltips via Unescaped GID in Inline Event Handlers","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"lang":"en","cweId":"CWE-74","description":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","baseScore":5.1,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"format":"SSVC","scenarios":[{"lang":"en","value":"GENERAL"}],"other":{"type":"SSVC","content":{"version":"2.0.3","role":"Supplier","timestamp":"2026-11-23T16:27:15Z","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}]}}}],"solutions":[{"lang":"en","value":"The vulnerability is remediated by eliminating the injection of untrusted GID values into inline JavaScript event handler contexts. Inline onmouseenter/onmouseleave attributes are replaced with a data-object-tooltip-gid HTML data attribute, and event handling is moved to delegated jQuery listeners in helper.js that read the value via the DOM dataset API, which does not parse the value as JavaScript. The AJAX tooltip URL now applies encodeURIComponent to the GID. Dynamically generated DOM elements are built using jQuery's .attr() and .text() methods instead of string concatenation, ensuring proper HTML and text encoding."}],"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","value":"CAPEC-1 Cross Site Scripting"}]}],"credits":[{"lang":"en","value":"terrtia","type":"remediation developer"},{"lang":"en","type":"finder","value":"Grant avrlab233"},{"lang":"en","type":"reporter","value":"ENISA AI Team"}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ail-project:ail-framework:*:*:*:*:*:*:*:*","versionStartIncluding":"0","versionEndIncluding":"7.1"}]}]}],"providerMetadata":{"orgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","shortName":"CIRCL","dateUpdated":"2026-11-23T16:36:56.150Z"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-23T19:39:51.425299Z","id":"CVE-2026-135301","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-11-23T19:40:20.961Z"}}]}}