Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-16088

The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-16088
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:52 UTC · Revision 1

Source evidence

CVE-2017-16088

core-osv · Original source

Published 7 Jun 2018, 02:29 UTC

The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.

osv:CVE-2017-16088
Complete source record
{
  "id": "829fb42dc649bf223402cd9af9ab99e38c0f0ce57b0cdf8199af2e3946628842",
  "url": "https://osv.dev/vulnerability/CVE-2017-16088",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-16088",
    "summary": "The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.",
    "evidence": "osv:CVE-2017-16088",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2017-16088",
      "aliases": [
        "CVE-2017-16088",
        "GHSA-ww6v-677g-p656"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hacksparrow/safe-eval",
              "type": "GIT",
              "events": [
                {
                  "introduced": "818d419de15772cef7616e86ee9d6df7f2e5e25e"
                },
                {
                  "last_affected": "42df4966135a37f7dcce8d744b3fd9c14ce0fb13"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:safe-eval_project:safe-eval:0.1.0:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0.1.0"
                      },
                      {
                        "last_affected": "0.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:safe-eval_project:safe-eval:0.2.0:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0.2.0"
                      },
                      {
                        "last_affected": "0.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:safe-eval_project:safe-eval:0.3.0:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0.3.0"
                      },
                      {
                        "last_affected": "0.3.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.1.0",
            "0.2.0",
            "0.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-16088.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:16.377664544Z",
      "provider": "osv",
      "references": [
        "https://github.com/hacksparrow/safe-eval/issues/5",
        "https://github.com/patriksimek/vm2/issues/59",
        "https://nodesecurity.io/advisories/337"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:safe-eval_project:safe-eval:0.0.0:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "safe-eval_project:safe-eval",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.0.0"
                  },
                  {
                    "last_affected": "0.0.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-16088",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380226,
  "published_at": "2018-06-07T02:29:01.643+00:00"
}