Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted JavaScript with malformed comment/whitespace sequence
-
DeliveryReach skip_spaces_and_comments tokenizer in mjs_tok.c
-
ExploitOverflow heap buffer boundary
-
ExecutionCorrupt adjacent heap memory in mJS process
-
ImpactAchieve partial confidentiality/integrity/availability impact
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target system to accept remotely supplied JavaScript source code for parsing by the mJS engine in versions 1.0 through 1.26. The vulnerable code path ( |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates fully unauthenticated, low-complexity network exploitation with no prerequisites, while the partial impact metrics (VC:L/VI:L/VA:L) yield a moderate 5.5 score reflecting incomplete control over heap corruption outcomes - not a reliable full-compromise primitive. SSVC classifies this as automatable with poc exploitation status and partial technical impact, consistent with the CVSS rating and confirming scripted mass-scanning is feasible. The E:P supplemental metric in the provided CVSS 4.0 vector corroborates the POC disclosure. No CISA KEV listing exists at time of analysis, suggesting exploitation remains opportunistic rather than targeted. The absence of a vendor response or patch elevates the sustained exposure window significantly, meaning even a mid-sized municipal IT team in malbork operating mJS-based IoT gateways has no vendor-supplied remediation path and must rely entirely on compensating controls. The gap between the automatable SSVC classification and the moderate CVSS score reflects that while exploitation delivery is trivial, reliable post-corruption control is constrained. |
| Exploit ScenarioDerived | An attacker sends a crafted JavaScript payload - containing specially structured comment sequences or whitespace patterns - to an IoT device or embedded gateway that passes remotely received scripts to the mJS engine for parsing. The tokenizer's |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Heap-based buffer overflow in Cesanta mJS up to version 1.26 allows unauthenticated remote attackers to achieve partial memory corruption by supplying crafted JavaScript input that triggers the skip_spaces_and_comments tokenizer function in src/mjs_tok.c. All release versions from 1.0 through 1.26 are confirmed affected per EUVD-2026-73943. A public proof-of-concept exploit has been disclosed via VulDB, the vendor has not responded to the issue report, and no patch has been released at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis - the maintainer has not responded to the GitHub issue filed at https://github.com/cesanta/mjs/issues/324. The primary compensating control is to prevent untrusted or remotely supplied JavaScript from being passed to the mJS parser; systems that only execute developer-controlled scripts are not remotely exploitable via this vector. Where mJS processes network-supplied input (e.g., IoT gateways, embedded scripting endpoints), isolate the mJS interpreter in a sandboxed process or container to bound the blast radius of heap corruption to that process alone, preventing lateral escalation. Input pre-filtering to reject or truncate payloads containing deeply nested or unusually long comment sequences may reduce exposure but is not a reliable mitigation for a tokenizer-level flaw. Monitor https://github.com/cesanta/mjs/ for a patch commit targeting the skip_spaces_and_comments function in src/mjs_tok.c.
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
mJS is Cesanta's lightweight JavaScript engine targeting microcontrollers and resource-constrained embedded systems. The vulnerable component is the lexical tokenizer in src/mjs_tok.c, specifically the skip_spaces_and_comments function responsible for advancing the input cursor past whitespace and comment tokens during source parsing. CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) identifies the root cause: the function performs heap writes without enforcing bounds checks against the allocated buffer, allowing crafted comment or whitespace sequences to overflow adjacent heap memory. This class of vulnerability in parser front-ends is particularly dangerous because tokenization runs on all input unconditionally before any higher-level validation can occur. No CPE strings are present in the input data; affected versions span the full release history mJS 1.0 through 1.26 as enumerated by EUVD.
Know when the next one hits your stack
- 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:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-exploitable tokenizer overflow requiring no auth or interaction; partial CIA impact reflects limited control over heap corruption without full code execution.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability was determined in Cesanta mJS up to 1.26. Affected is the function skip_spaces_and_comments of the file src/mjs_tok.c. Executing a manipulation can lead to heap-based buffer overflow. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
EUVD-2026-73943
GHSA-mcxw-v86m-vj8g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB