{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.2.0"
                  },
                  {
                    "fixed": "5.5.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "eba71ab7f4aba23d9321d653ccd19d4e94432516"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "5.5.0",
                "range": [
                  {
                    "fixed": "eba71ab7f4aba23d9321d653ccd19d4e94432516"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "range": [
                  {
                    "introduced": "2.2.0"
                  },
                  {
                    "fixed": "5.5.0"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "b859699eff6ec3cb8abeff538117c48b0791f49b"
            },
            {
              "fixed": "eba71ab7f4aba23d9321d653ccd19d4e94432516"
            }
          ],
          "repo": "https://github.com/spatie/browsershot",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126779.json"
  },
  "details": "Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read vulnerability that allows attackers to read server files by supplying root-relative references in HTML passed to setHtml(). Attackers can embed iframe, img, link or script elements referencing paths like /etc/passwd, which resolve to file:// URLs and render file contents into the returned PDF or screenshot.",
  "id": "CVE-2026-126779",
  "modified": "2026-11-14T02:30:47.113659202Z",
  "published": "2026-11-11T18:41:10.254Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://packagist.org"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126779.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/spatie/browsershot/releases/tag/5.5.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126779"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml"
    },
    {
      "type": "FIX",
      "url": "https://github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516"
    },
    {
      "type": "FIX",
      "url": "https://github.com/spatie/browsershot/pull/989"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/spatie/browsershot"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()"
}