{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-31875","id":"CVE-2021-31875","title":"In mjs_json.c in Cesanta MongooseOS mJS 1.26, a maliciously formed JSON string can trigger an off-by-one heap-based b…","description":"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 re","descriptionLong":"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.\"","published":"2021-04-29T00:00:00.000Z","updated":"2026-10-24T14:21:16.512958277Z","reserved":"2021-04-29T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-193","CWE-787"],"aliases":[],"references":[{"url":"https://huntr.dev/bounties/1-other-mjs/","tags":["x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/418sec/mjs/pull/2","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/cesanta/mjs/releases/tag/1.26","tags":["x_transferred","Release Notes","Third Party Advisory","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02174,"epssPercentile":0.82698,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-31875","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31875","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-31875","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-31875","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}