{
  "schema_version": "1.4.0",
  "id": "GHSA-2rq5-699j-x7p6",
  "modified": "2023-03-20T13:59:48Z",
  "published": "2023-03-15T21:30:25Z",
  "aliases": [
    "CVE-2023-25345"
  ],
  "summary": "Arbitrary local file read vulnerability during template rendering ",
  "details": "Directory traversal vulnerability in swig-templates thru 2.0.4 and swig thru 1.4.2, allows attackers to read arbitrary files via the include or extends tags.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "swig-templates"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "2.0.4"
            }
          ]
        }
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "swig"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "1.4.2"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25345"
    },
    {
      "type": "WEB",
      "url": "https://github.com/node-swig/swig-templates/issues/88"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-03-16T13:27:03Z",
    "nvd_published_at": "2023-03-15T20:15:00Z"
  }
}