CVE-2026-62297: ag-psd can exhaust memory when parsing crafted PSD dimensions
Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-qfx6-q44v-9qqw
Summary
The ag-psd library suffers from an uncontrolled memory allocation vulnerability when parsing crafted PSD dimensions before validating them against actual data. All developers using ag-psd versions prior to 31.0.0 to parse untrusted PSD files should update immediately.
Who is affected
Deployments parsing untrusted PSD files via ag-psd are vulnerable to a remote Denial of Service (DoS) attack. A tiny crafted PSD file can force multi-gigabyte memory allocations that trigger uncatchable process termination or exhaust system memory under concurrent requests.
Exploitability
The vulnerability can be exploited over a network without authentication or user interaction with a base score of 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). The current EPSS score is 0.003 and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the npm package ag-psd to version 31.0.0 or later.
- Ensure applications validate PSD geometry or restrict processing to trusted files if upgrading is not immediately possible.
How to check your project
- Check project dependency files such as package.json or package-lock.json for the 'ag-psd' package within the affected version range introduced up to 31.0.0.
- Use dependency scanning tools to identify vulnerable versions of ag-psd in the application environment.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | ag-psd |
>= 0, < 31.0.0 | 31.0.0 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What causes the memory exhaustion in ag-psd?
The readPsd() function allocates image and layer buffers based on declared header geometry and layer rectangles before validating those values against the actual input data length.
Is this vulnerability actively exploited in the wild?
There is currently no documentation indicating active exploitation, and the vulnerability is not present in the CISA Known Exploited Vulnerabilities catalog.
Which package version fixes this vulnerability?
Version 31.0.0 of the npm package ag-psd contains the fix for this issue.
Original advisory description
References
- WEB https://github.com/Agamnentzar/ag-psd/security/advisories/GHSA-qfx6-q44v-9qqw
- WEB https://github.com/Agamnentzar/ag-psd/commit/2d7da68400990bae8ba248a065eb45021fa8000a
- PACKAGE https://github.com/Agamnentzar/ag-psd
- WEB https://github.com/Agamnentzar/ag-psd/blob/2d7da68400990bae8ba248a065eb45021fa8000a/CHANGELOG.md
- WEB https://github.com/Agamnentzar/ag-psd/tree/31.0.0
- ADVISORY https://nvd.nist.gov/vuln/detail/cve-2026-62297
Source records: GHSA-qfx6-q44v-9qqw (OSV.dev) · EPSS by FIRST, 2026-11-26.