CVE-2026-62297
HIGHDescription
ag-psd is a JavaScript library for reading and writing Photoshop Document files. Before the allocation-limit remediation attempt in version 31.0.0, `readPsd()` commits image and layer buffers from attacker-declared PSD geometry before validating the declarations against the actual available data or sane allocation limits. The `psdReader.js` implementation sizes off-heap typed arrays using `width`, `height`, `channels`, `depth` and `per-layer rectangles`, so a tiny PSD declaring enormous geometry can force multi-gigabyte memory allocation before a later bounds error. The reported 52-byte input on Node 24 produced approximately 3.17 GB peak RSS before a RangeError; under memory pressure the process can be terminated before the error can be caught, and concurrent inputs can exhaust memory. Services reading untrusted PSDs are exposed to denial of service. This differs from genuinely large PSD files whose memory demand is proportional to real input content. Version 31.0.0 adds a composite-image allocation limit, but complete coverage of the separately described layer-rectangle allocation path is not established and requires curator residual/scope review.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 45% of all known CVEs.
References
Related Vulnerabilities
Other CWE-789 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2022-30522 | High | 7.5 | 90% | - | Fix |
| CVE-2026-49975 | High | 7.5 | 32% | - | Fix |
| CVE-2025-27533 | High | 7.5 | 9.1% | - | Fix |
| CVE-2017-7651 | High | 7.5 | 5.1% | - | Fix |
| CVE-2021-31811 | Medium | 5.5 | 3.6% | - | Fix |
| CVE-2021-27906 | Medium | 5.5 | 3.3% | - | Fix |
Common questions
How do I fix CVE-2026-62297?
Upgrade ag-psd to 31.0.0 or later.
Is CVE-2026-62297 being actively exploited?
Not that we know of. CVE-2026-62297 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.52% is the estimated probability that it will be exploited in the next 30 days. That is higher than 45% of all scored CVEs.
How severe is CVE-2026-62297?
CVE-2026-62297 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2026-62297 affect?
Published advisories record a fix for ag-psd (npm). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2026-62297
Markdown
[](https://tridentstack.com/cve/CVE-2026-62297)HTML
<a href="https://tridentstack.com/cve/CVE-2026-62297"><img src="https://tridentstack.com/cve/badge/CVE-2026-62297.svg" alt="CVE-2026-62297"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-11-02.