Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-62297
Published:October 30, 2026
Updated:November 04, 2026
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.
Affected Packages
https://github.com/Agamnentzar/ag-psd.git (GITHUB):
Affected version(s) =0.1.3 <31.0.0 || >=30.1.1 <31.0.0
Fix Suggestion:
Update to version 31.0.0
ag-psd (NPM):
Affected version(s) >=4.0.0 <31.0.0 || >=18.0.0 <31.0.0 || >=15.0.0 <31.0.0 || =25.0.0 <31.0.0 || >=1.0.0 <31.0.0 || =24.0.0 <31.0.0 || >=0.1.0 <31.0.0 || =8.0.0 <31.0.0 || >=28.0.0 <31.0.0 || =16.0.0 <31.0.0 || >=11.0.0 <31.0.0 || >=9.0.0 <31.0.0 || >=21.0.0 <31.0.0 || >=19.0.0 <31.0.0 || =7.0.0 <31.0.0 || >=22.0.0 <31.0.0 || >=14.0.0 <31.0.0 || >=23.0.0 <31.0.0 || =26.0.0 <31.0.0 || >=29.0.0 <31.0.0 || >=6.0.0 <31.0.0 || >=2.0.0 <31.0.0 || >=5.0.0 <31.0.0 || >=3.0.0 <31.0.0 || >=30.0.0 <31.0.0 || =10.0.0 <31.0.0 || =27.0.0 <31.0.0 || >=17.0.0 <31.0.0 || >=13.0.0 <31.0.0 || >=20.0.0 <31.0.0 || >=12.0.0 <31.0.0
Fix Suggestion:
Update to version 31.0.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Memory Allocation with Excessive Size Value
EPSS
Base Score:
0.34