Description
AIL Project contains a stored cross-site scripting vulnerability in the translation controls displayed for chat messages and forum posts.

The affected templates inserted message and post identifiers directly into inline JavaScript onclick handlers:

onclick="translateMessageToPreferredLanguage('{{ message['id'] }}', '{{ mess_id_escape }}', this)"

and:

onclick="translatePostToPreferredLanguage('{{ post['id'] }}', '{{ post_id_escape }}', this)"

These values were HTML-template escaped but were not safely encoded for use as JavaScript string literals inside an HTML attribute. A specially crafted identifier containing quotation marks, escape characters, or other JavaScript syntax could therefore terminate the expected string argument and inject arbitrary JavaScript into the event handler.

Because the affected values are associated with indexed chat messages or forum posts, a malicious value may remain stored by AIL and be rendered whenever an analyst accesses the corresponding chat or forum explorer view.

Successful exploitation requires the victim to click the affected Translate to preferred language button. The injected code would then execute in the victim’s browser under the security origin of the AIL instance.
Published: 2026-08-06
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

AIL Project’s ail-framework has a stored cross‑site scripting flaw in the translation controls of chat messages and forum posts. The framework embeds message or post identifiers directly into JavaScript onclick handlers without proper encoding for JavaScript string literals, allowing a crafted identifier that includes quote marks or escape sequences to break out of the string and inject arbitrary JavaScript. This leads to arbitrary script execution in the victim’s browser when they click the Translate button, potentially enabling session hijacking, credential theft, or defacement. The weakness is identified as CWE‑79.

Affected Systems

The vulnerability affects the ail-framework component of the ail-project. No specific version numbers are listed, so all releases that include the vulnerable template logic are impacted until the referenced fix commit is applied.

Risk and Exploitability

The CVSS v3.1 base score of 6.9 indicates a moderate severity vulnerability. Because the attack requires only a user to click the Translate button and the malicious data is already stored by the system, exploitation is simple for any authenticated or unauthenticated user who can inject a specially crafted identifier. The EPSS score is not available, and the vulnerability is not yet listed in CISA’s KEV catalog. The likely attack vector is a local or global click‑based interaction, with the injected code executing under the AIL instance’s security origin, thereby granting the attacker any privileges associated with that origin.

Generated by OpenCVE AI on August 7, 2026 at 01:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the commit 884662517cf02c3eac928fa68c5a19ec35138b45 or upgrade to the latest release of ail-framework that incorporates the fix, ensuring identifiers are properly encoded for JavaScript string literals.
  • If a timely update is not possible, remove or disable the chat and forum translation controls to prevent any user interaction that could trigger the vulnerability.
  • Implement a strict Content Security Policy that disallows inline script execution (e.g., "script-src 'self'" without 'unsafe-inline') to mitigate any residual or future XSS exposure.

Generated by OpenCVE AI on August 7, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Ail-project
Ail-project ail-framework
Vendors & Products Ail-project
Ail-project ail-framework

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description AIL Project contains a stored cross-site scripting vulnerability in the translation controls displayed for chat messages and forum posts. The affected templates inserted message and post identifiers directly into inline JavaScript onclick handlers: onclick="translateMessageToPreferredLanguage('{{ message['id'] }}', '{{ mess_id_escape }}', this)" and: onclick="translatePostToPreferredLanguage('{{ post['id'] }}', '{{ post_id_escape }}', this)" These values were HTML-template escaped but were not safely encoded for use as JavaScript string literals inside an HTML attribute. A specially crafted identifier containing quotation marks, escape characters, or other JavaScript syntax could therefore terminate the expected string argument and inject arbitrary JavaScript into the event handler. Because the affected values are associated with indexed chat messages or forum posts, a malicious value may remain stored by AIL and be rendered whenever an analyst accesses the corresponding chat or forum explorer view. Successful exploitation requires the victim to click the affected Translate to preferred language button. The injected code would then execute in the victim’s browser under the security origin of the AIL instance.
Title Stored Cross-Site Scripting in Chat and Forum Translation Controls in ail-framework
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:L/SI:N/SA:N'}


Subscriptions

Ail-project Ail-framework
cve-icon MITRE

Status: PUBLISHED

Assigner: CIRCL

Published:

Updated: 2026-08-06T17:08:52.223Z

Reserved: 2026-08-06T17:04:47.831Z

Link: CVE-2026-71447

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T02:15:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')