Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-46526

Cesanta MJS v2.20.0 was discovered to contain a global buffer overflow via snquote at src/mjs_json.c.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-46526
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:03 UTC · Revision 1

Source evidence

CVE-2021-46526

core-osv · Original source

Published 27 Jan 2022, 21:15 UTC

Cesanta MJS v2.20.0 was discovered to contain a global buffer overflow via snquote at src/mjs_json.c.

osv:CVE-2021-46526
Complete source record
{
  "id": "28a56914a7b04ae08d986fdc129f117fbd7372ca57ab8394fc496ff3f8ea2cf5",
  "url": "https://osv.dev/vulnerability/CVE-2021-46526",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-46526",
    "summary": "Cesanta MJS v2.20.0 was discovered to contain a global buffer overflow via snquote at src/mjs_json.c.",
    "evidence": "osv:CVE-2021-46526",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-46526",
      "aliases": [
        "CVE-2021-46526"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cesanta/mjs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b1b6eac6b1e5b830a5cb14f8f4dc690ef3162551"
                },
                {
                  "last_affected": "b1b6eac6b1e5b830a5cb14f8f4dc690ef3162551"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cesanta:mjs:2.20.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.20.0"
                      },
                      {
                        "last_affected": "2.20.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.20.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46526.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:10.246385053Z",
      "provider": "osv",
      "references": [
        "https://github.com/cesanta/mjs/issues/191"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-46526",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387003,
  "published_at": "2022-01-27T21:15:10.207+00:00"
}