Live threats

All CVEs / Cesanta

CVE-2021-31875Cesanta Mongooseos Mjs

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.2%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Apr 29, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-193, CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

In mjs_json.c in Cesanta MongooseOS mJS 1.26, a maliciously formed JSON string can trigger an off-by-one heap-based buffer overflow in mjs_json_parse, which can potentially lead to redirection of control flow. NOTE: the original reporter disputes the significance of this finding because "there isn’t very much of an opportunity to exploit this reliably for an information leak, so there isn’t any real security impact."

Original NVD text.

What to do

  1. Apply the vendor's security update for Mongooseos Mjs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
cesantamongooseos_mjs1.26

Official sources

References

Links published by the sources. Open them with care.