Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege UI user
-
DeliveryInject script payload into expression field
-
ExploitStore in ExpressionViewModal-rendered data
-
ExecutionVictim opens expression view modal
-
PersistScript executes in victim browser
-
ImpactHijack session or act as victim
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 an authenticated low-privilege account on the BharatMLStack Trufflebox UI (trufflebox-ui) and a victim who subsequently opens the affected ExpressionViewModal component, which renders attacker-controlled expression content without adequate sanitization. Exploitation is limited by: (1) authentication - the attacker must already have valid low-privilege access (PR:L); (2) user interaction - a separate victim must load/view the malicious expression in the modal (UI:R); and (3) deployment footprint - only affects self-hosted BharatMLStack instances at version 1.3.0 or earlier running the Trufflebox web UI. Impact is confined to the victim's browser context (session/data within the web app), not the underlying host. |
| Impact | This is a moderate-severity stored/reflected XSS (CVSS 3.1 5.4) in the Trufflebox UI web frontend of BharatMLStack. The CVSS vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) tells a consistent story: network-reachable, low complexity, but requiring an authenticated low-privilege account (PR:L) AND victim interaction (UI:R, a victim must open the affected ExpressionViewModal). The scope change (S:C) reflects that injected script executes in a victim's browser context, but confidentiality and integrity impact are only Low and availability is None - this is not an RCE or data-wholesale-exfil class bug. EPSS is very low at 0.15% (5th percentile), it is NOT on CISA KEV, and there is no confirmed public exploit code (a third-party security writeup exists but is not itself weaponized PoC). All signals align: exploitation status is 'no public exploit identified at time of analysis', probability of widespread exploitation is low, and the twin gating factors of authentication plus required user interaction further reduce real-world risk. This is a legitimate bug to patch but a low operational priority - not a high-CVSS-but-hidden-critical situation. No signals are strongly conflicting; the main caveat is that CPE and affected-version data are 'n/a' in the feeds, so exact version boundaries beyond '<=1.3.0' are not machine-confirmed. |
| Exploit ScenarioDerived | An attacker with a low-privileged authenticated account in the Trufflebox UI injects a malicious script payload into an expression field that is later rendered by ExpressionViewModal.jsx. When another user (e.g. an admin or teammate) opens that expression's view modal, the script executes in their browser session, enabling session/token theft or actions on their behalf. A third-party security writeup describing the flaw is public, but no confirmed weaponized exploit code was identified; exploitation requires both a valid account and the victim opening the modal. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 21, 2026
Cross-site scripting in the Trufflebox UI (trufflebox-ui) of BharatMLStack up to and including 1.3.0 allows an authenticated low-privilege user to plant script-bearing expression content that executes in a separate victim's browser session when the ExpressionViewModal component renders it. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, score 5.4) describes a moderate-severity issue that requires an existing account plus a victim who opens the malicious expression, and that stays confined to the victim's browser context rather than the underlying host. Exploitation is not confirmed active - there is no CISA KEV entry and no public exploit code identified at time of analysis - and EPSS is low at 0.15% (5th percentile), making this a realistic but opportunistic risk for self-hosted deployments running the Trufflebox web frontend.
RemediationAI
No vendor-released patch was identified at time of analysis, so remediation is currently compensating-control driven. The most direct fix is to apply upstream sanitization in ExpressionViewModal.jsx - render expression content as plain text or HTML-escape it, and remove any raw HTML injection such as dangerouslySetInnerHTML - while tracking the BharatMLStack repository at https://github.com/Meesho/BharatMLStack for the release carrying that change, with the writeup at https://github.com/wincr4ck/security-advisories/blob/main/bharatmlstack-cve-writeup.md and the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-39040 as tracking references. Until a fix is available, deploy a strict Content-Security-Policy on the Trufflebox UI that disallows inline and third-party script, which blocks payload execution but may break the UI if it relies on inline scripts, so stage it in report-only mode first; and restrict expression creation/editing to fully trusted operators, since the attack requires a low-privileged authenticated account (trade-off: reduces collaboration functionality in that component only). Keep the Trufflebox UI off the public internet or behind an authenticated reverse proxy/VPN to shrink the pool of reachable victims, and treat expression content from untrusted users as hostile. None of these controls removes the need for the code fix, and lowering user privileges does not stop a stored payload from firing when a higher-privileged user opens the modal.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
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 (improper neutralization of input during web page generation), the classic cross-site scripting class in which user-supplied data reaches the DOM without adequate escaping or sanitization. The vulnerable surface is the React/JSX component ExpressionViewModal.jsx inside the Trufflebox UI (trufflebox-ui) of BharatMLStack, Meesho's open-source machine-learning platform; the modal renders attacker-influenced expression content directly instead of treating it as inert text (for example via unescaped HTML injection such as dangerouslySetInnerHTML), letting markup and script execute in the viewer's browser. The CVSS vector shows network reachability (AV:N), low attack complexity (AC:L), and importantly a Scope change (S:C) with low confidentiality and integrity impact but no availability impact - the hallmark of client-side script execution in the web application's security context, where session tokens or in-app data can be read or altered without affecting the host OS. The authentication prerequisite (PR:L) and user-interaction requirement (UI:R) mean a low-privileged authenticated account is needed to persist or deliver the payload, and a distinct victim must then load the affected modal for the script to run. The supplied CPE string is unresolved (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:*) and the EUVD affected-version entry is listed as "n/a", so exact version mapping depends on the vendor project rather than automated CPE matching.
Know when JavaScript 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
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Web XSS reachable over the network with low complexity, but needs a low-priv authenticated account (PR:L) and victim viewing the modal (UI:R); script escaping into the browser is a scope change (S:C) with Low C/I and no availability impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
BharatMLStack up to and including 1.3.0 is vulnerable to Cross Site Scripting (XSS) via the component Trufflebox UI (trufflebox-ui) in ExpressionViewModal.jsx.
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
Priority Score
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 JavaScript
View allCommand injection in simple-git, the Node.js library for running git commands and published on npm, affects all releases
Stored DOM-based cross-site scripting in Paella Player's closed-caption rendering path (paella-core before 2.12.11) allo
Authorization bypass in Wiki.js through 2.5.314 allows an authenticated user who has been granted access to at least one
Untrusted git configuration includes reachable through simple-git before 4.0.0 let an attacker execute arbitrary command
Improper memory allocation control in ExifReader before 4.41.1 allows remote attackers to exhaust heap memory and termin
Deeply nested brace patterns cause unbounded recursion in the npm brace-expansion library, exhausting the native stack a
Stack exhaustion in the npm library brace-expansion (all versions prior to 1.1.19, 2.1.5, 3.0.7, and 5.0.10) lets a craf
Code injection in Elo's programmatic AST API (npm @enspirit/elo) through version 1.0.0 allows an integrator who populate
Server-side request forgery in Wiki.js through 2.5.314 lets an authenticated user who holds page-editing permissions for
The JavaScript library ip-address (npm) fails to treat the NAT64 local-use prefix 64:ff9b:1::/48 as private, so applicat
Authorization bypass in the @grpc/grpc-js-xds package (the xDS/RBAC extension for @grpc/grpc-js) lets a request for one
Cross-family subnet comparisons in the ip-address npm library (all versions before 10.7.1) can cause isInSubnet and isHo
EUVD-2026-78940
GHSA-fxfm-5rjr-qjh3
NVD
CVE.org
EPSS
VulDB
Exploit-DB