{
  "id": "CVE-2025-71319",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-71319",
  "published_at": "2026-06-09T19:57:16.125Z",
  "title": "image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser",
  "vendor": "image-size",
  "product": "image-size",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "image-size through 2.0.2 contains a denial of service vulnerability that allows remote attackers to permanently block the Node.js event loop by supplying a specially crafted image buffer with a zero-valued size field in a recognized box-type. Attackers can trigger an infinite loop in the JXL or HEIF image parsers by providing a crafted image containing a box with a size of zero, causing the offset to never advance and permanently hanging the application.",
  "cwe": "CWE-835",
  "cpes": [
    "cpe:2.3:a:image-size:image-size:*:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:redhat:discovery:2.0:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:gatekeeper:3.0:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:trusted_artifact_signer:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "image-size",
        "product": "image-size",
        "ranges": [
          "\u003e= 1.1.0, \u003c= 1.2.1",
          "\u003e= 2.0.0, \u003c= 2.0.2"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "image-size",
        "ranges": [
          "\u003e= 1.1.0, \u003c 1.2.1"
        ],
        "fixed_in": [
          "1.2.1"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-m5qc-5hw7-8vg7"
      },
      {
        "vendor": "",
        "product": "image-size",
        "ranges": [
          "\u003e= 2.0.0, \u003c 2.0.2"
        ],
        "fixed_in": [
          "2.0.2"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-m5qc-5hw7-8vg7"
      }
    ],
    "upgrade": [
      "Upgrade image-size to 1.2.1 or later.",
      "Upgrade image-size to 2.0.2 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities",
      "source": "cvelist",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
