{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.2.8"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "23f0cd3a2610c68688ea1f04fd61e9b8f6982166"
            }
          ],
          "repo": "https://github.com/node-red/node-red",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "Node-Red is a low-code programming for event-driven applications built using nodejs. Node-RED 1.2.7 and earlier contains a Prototype Pollution vulnerability in the admin API. A badly formed request can modify the prototype of the default JavaScript Object with the potential to affect the default behaviour of the Node-RED runtime. The vulnerability is patched in the 1.2.8 release. A workaround is to ensure only authorized users are able to access the editor url.",
  "id": "CVE-2021-21297",
  "modified": "2026-04-01T23:10:35.017197196Z",
  "published": "2021-02-26T17:15:12.210Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/%40node-red/editor-api"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/%40node-red/runtime"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/node-red/node-red/releases/tag/1.2.8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67"
    }
  ],
  "related": [
    "GHSA-xp9c-82x8-7f67"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}