Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-1026

Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method, which results in a Local File Inclusion allowing the attacker to read sensitive files. **Note:** This is a bypass of the fix for [CVE-2024-21549](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-1026
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:33 UTC · Revision 1

Source evidence

CVE-2025-1026

core-osv · Original source

Published 5 Feb 2025, 05:00 UTC

Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method, which results in a Local File Inclusion allowing the attacker to read sensitive files. **Note:** This is a bypass of the fix for [CVE-2024-21549](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023).

osv:CVE-2025-1026
Complete source record
{
  "id": "9eccc558c79c1f1f95041bb205d6879c125f0ae1d41298340ec28c19b57cce6c",
  "url": "https://osv.dev/vulnerability/CVE-2025-1026",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-1026",
    "summary": "Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method, which results in a Local File Inclusion allowing the attacker to read sensitive files. **Note:** This is a bypass of the fix for [CVE-2024-21549](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023).",
    "evidence": "osv:CVE-2025-1026",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-1026",
      "aliases": [
        "CVE-2025-1026",
        "GHSA-f2q5-6mx7-q9qq"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spatie/browsershot",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c0fa14c2386df2b4444e803ddc11e592b16d3a20"
                },
                {
                  "fixed": "e3273974506865a24fbb5b65b534d8d4b8dfbf72"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.0.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e3273974506865a24fbb5b65b534d8d4b8dfbf72"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.0.4",
            "5.0.3",
            "5.0.1",
            "5.0.0",
            "4.4.0",
            "4.3.1",
            "4.3.0",
            "4.2.1",
            "4.2.0",
            "4.1.3",
            "4.1.2",
            "4.1.1",
            "4.1.0",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "4.0.2",
            "4.0.1",
            "4.0.0",
            "3.61.0",
            "3.60.2",
            "3.60.1",
            "3.60.0",
            "3.59.0",
            "3.58.2",
            "3.58.1",
            "3.58.0",
            "3.57.8",
            "3.57.7",
            "3.57.6",
            "3.57.5",
            "3.57.4",
            "3.57.3",
            "3.57.2",
            "3.57.1",
            "3.57.0",
            "3.56.0",
            "3.55.0",
            "3.54.0",
            "3.53.0",
            "3.52.6",
            "3.52.5",
            "3.52.4",
            "3.52.3",
            "3.52.2",
            "3.52.1",
            "3.52.0",
            "3.51.0",
            "3.50.2",
            "3.50.1",
            "3.50.0",
            "3.49.0",
            "3.48.0",
            "3.47.0",
            "3.46.0",
            "3.45.0",
            "3.44.1",
            "3.44.0",
            "3.42.0",
            "3.41.2",
            "3.41.1",
            "3.41.0",
            "3.40.3",
            "3.40.2",
            "3.40.1",
            "3.40.0",
            "3.39.0",
            "3.38.0",
            "3.37.2",
            "3.37.1",
            "3.37.0",
            "3.36.0",
            "3.35.0",
            "3.34.0",
            "3.33.1",
            "3.33.0",
            "3.32.2",
            "3.32.1",
            "3.32.0",
            "3.31.1",
            "3.31.0",
            "3.30.0",
            "3.29.0",
            "3.27.0",
            "3.26.3",
            "3.26.2",
            "3.26.1",
            "3.26.0",
            "3.25.1",
            "3.25.0",
            "3.24.0",
            "3.23.1",
            "3.23.0",
            "3.22.1",
            "3.22.0",
            "3.20.1",
            "3.20.0",
            "3.19.0",
            "3.18.0",
            "3.17.0",
            "3.16.1",
            "3.16.0",
            "3.15.0",
            "3.14.1",
            "2.4.1",
            "3.14.0",
            "3.13.0",
            "3.12.0",
            "3.11.1",
            "3.11.0",
            "3.10.0",
            "3.9.0",
            "3.8.1",
            "3.8.0",
            "3.7.0",
            "3.6.0",
            "3.5.0",
            "3.4.0",
            "3.3.1",
            "3.3.0",
            "3.2.1",
            "3.2.0",
            "3.1.0",
            "3.0.0",
            "2.4.0",
            "2.2.0",
            "2.1.0",
            "2.0.3",
            "2.0.2",
            "2.0.1",
            "1.8.0",
            "1.7.0",
            "1.6.0",
            "1.5.3",
            "1.5.2",
            "1.5.1",
            "1.5.0",
            "1.4.0",
            "1.2.4",
            "1.2.3",
            "1.2.2",
            "1.2.1",
            "1.2.0",
            "1.1.0",
            "1.0.0",
            "0.1.3",
            "0.1.2",
            "0.1.1",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-1026.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.339455949Z",
      "provider": "osv",
      "references": [
        "https://gist.github.com/chuajianshen/6291920112fcf1543fa7b43862112be6",
        "https://gist.github.com/mrdgef/54a8783408220c67c1b859df38a52d65",
        "https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533024",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1026.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-1026",
        "https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72",
        "https://github.com/spatie/browsershot/pull/908"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "snyk",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1026.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-1026",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508017,
  "published_at": "2025-02-05T05:00:01.94+00:00"
}