Description
An out-of-bounds write vulnerability in jslGetTokenValueAsString() in Espruino 2v29 (commit bffc6d0) allows crafted JavaScript input containing an overlong token to trigger a one-byte write beyond the JsLex.token buffer in RELEASE/NO_ASSERT builds. The out-of-bounds write corrupts the adjacent tokenValue pointer, resulting in memory corruption and potentially causing application crashes or denial of service.
Published: 2026-09-24
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

Impact

An out-of-bounds write occurs in the jslGetTokenValueAsString() function of the Espruino JavaScript engine when an excessively long token is parsed. The write places a one‑byte value beyond the JsLex.token buffer, corrupting the adjacent tokenValue pointer. This memory corruption can cause the interpreter to crash or otherwise fail, leading to a denial of service. The vulnerability does not provide a path to arbitrary code execution.

Affected Systems

The flaw is present in Espruino version 2v29 (commit bffc6d0) compiled with the RELEASE/NO_ASSERT flag. Debug or assertion‑enabled builds are not affected. No other vendors or product variants are documented as impacted.

Risk and Exploitability

The CVSS score of 7.7 places the weakness in the high‑severity range, while the EPSS score is reported as less than 1%, indicating a very low but non‑zero likelihood of exploitation from publicly available sources. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is delivering crafted JavaScript containing an overlong token through any interface that accepts untrusted scripts, such as network‑exposed input to an embedded device or file uploads. Exploitation requires such input to be parsed by the interpreter. The primary risk is service disruption; the attack does not directly scale to privilege escalation or code execution.

Generated by OpenCVE AI on September 26, 2026 at 04:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to an Espruino build that includes the patch from commit ecd7d43e084ba9aafa8245609347fe0f4383b38c or later, which restores bounds checking for token strings.
  • Recompile the interpreter with assertions enabled (disable the RELEASE/NO_ASSERT configuration) to detect out-of-bounds writes during development and testing.
  • Implement input validation on any external JavaScript source, rejecting scripts that contain tokens exceeding a safe length before invoking the interpreter.

Generated by OpenCVE AI on September 26, 2026 at 04:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 26 Sep 2026 05:15:00 +0000

Type Values Removed Values Added
Title Out-of-Bounds Write in Espruino jslGetTokenValueAsString() Leading to Memory Corruption

Thu, 24 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Espruino
Espruino espruino
Vendors & Products Espruino
Espruino espruino

Thu, 24 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
Description An out-of-bounds write vulnerability in jslGetTokenValueAsString() in Espruino 2v29 (commit bffc6d0) allows crafted JavaScript input containing an overlong token to trigger a one-byte write beyond the JsLex.token buffer in RELEASE/NO_ASSERT builds. The out-of-bounds write corrupts the adjacent tokenValue pointer, resulting in memory corruption and potentially causing application crashes or denial of service.
References

Subscriptions

Espruino Espruino
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-24T18:59:33.570Z

Reserved: 2026-09-10T00:00:00.000Z

Link: CVE-2026-88390

cve-icon Vulnrichment

Updated: 2026-09-24T18:57:41.098Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T17:17:08.143

Modified: 2026-09-24T21:08:55.030

Link: CVE-2026-88390

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T05:00:05Z

Weaknesses