Out-of-bounds Write Affecting cesanta/mjs package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.66% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-CESANTAMJS-2367486
  • published26 Jan 2022
  • disclosed29 Apr 2021
  • creditUnknown

Introduced: 29 Apr 2021

CVE-2021-31875  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

There is no fixed version for cesanta/mjs.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. 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.

CVSS Scores

version 3.1