Vulnerabilities |
10 via 10 paths |
|---|---|
Dependencies |
91 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.32.6.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Heap-based Buffer Overflow when the ReadHuffmanCodes() function is used. An attacker can craft a special WebP lossless file that triggers the ReadHuffmanCodes() function to allocate the HuffmanCode buffer with a size that comes from an array of precomputed sizes: kTableSize. The color_cache_bits value defines which size to use. The kTableSize array only takes into account sizes for 8-bit first-level table lookups but not second-level table lookups. libwebp allows codes that are up to 15-bit (MAX_ALLOWED_CODE_LENGTH). When BuildHuffmanTable() attempts to fill the second-level tables it may write data out-of-bounds. The OOB write to the undersized array happens in ReplicateValue.
Notes:
This is only exploitable if the color_cache_bits value defines which size to use.
This vulnerability was also published on libwebp CVE-2023-5129
Changelog:
2023-09-12: Initial advisory publication
2023-09-27: Advisory details updated, including CVSS, references
2023-09-27: CVE-2023-5129 rejected as a duplicate of CVE-2023-4863
2023-09-28: Research and addition of additional affected libraries
2024-01-28: Additional fix information
Remediation
Upgrade sharp to version 0.32.6 or higher.
References
high severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.4.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the VipsForeignLoadHeif process. An attacker can execute arbitrary code by providing specially crafted AVIF images as input.
Workaround
This vulnerability can be mitigated by blocking the decoding of AVIF images using the configuration sharp.block({ operation: ["VipsForeignLoadHeif"] }); and by ensuring the Node.js executable is compiled as a Position Independent Executable (PIE).
Remediation
Upgrade sharp to version 0.35.4 or higher.
References
high severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.5.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Use After Free in entity_insert() and the entity map held on XmlState, which is shared between the outer parse and a recursive XInclude, so inserting an entity whose name already exists replaces the first entry and its Drop implementation calls xmlFreeNode() while the outer xmlCtxtParseEntity() is still using that 144 byte xmlEntity. An attacker can corrupt process memory by supplying an SVG document whose xi:include pulls in another document redefining an entity that is already active. This requires the application to parse attacker supplied SVG with XInclude processing reached, and the entity names must collide across the outer document and the included one.
Remediation
Upgrade sharp to version 0.35.5 or higher.
References
high severity
new
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.5.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Use After Free via a memory-related vulnerability in the bundled librsvg dependency. An attacker can supply an SVG image that, when decoded through librsvg, triggers the memory corruption and results in arbitrary code execution on glibc-based Linux systems.
Note: This is only exploitable when the node executable is not compiled as a Position Independent Executable (PIE); the official Node.js binaries do not use this hardening feature, making them susceptible.
Remediation
Upgrade sharp to version 0.35.5 or higher.
References
high severity
new
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.0.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Dependency on Vulnerable Third-Party Component via the bundled libvips image decoding library, specifically its GIF, TIFF, and VIPS image decoders. An attacker can supply malicious GIF, TIFF, or VIPS image files to an application that uses sharp to process untrusted input, triggering multiple flaws (CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591, and CVE-2026-69242) in the underlying libvips dependency. Two of these vulnerabilities are rated High severity under CVSSv4, with impacts including high integrity and availability compromise on the local system.
Remediation
Upgrade sharp to version 0.35.0 or higher.
References
high severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.0.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the bundled libvips TIFF loader (VipsForeignLoadTiff), which can miscount the channels of a tile encoded as JPEG or JPEG2000 within a TIFF image. An attacker can corrupt heap memory and crash the process, with a possibility of code execution, by supplying a TIFF whose JPEG or JPEG2000 tiles cause the channel count to be misdetermined and the buffer undersized. Exploitation requires the application to decode an untrusted TIFF with JPEG or JPEG2000 tiles through sharp.
Workaround
This vulnerability can be avoided by blocking the TIFF loader through sharp's block() for the VipsForeignLoadTiff operation, or by setting the VIPS_BLOCK_UNTRUSTED environment variable, so untrusted TIFF images are not decoded.
Remediation
Upgrade sharp to version 0.35.0 or higher.
References
high severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.0.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Integer Overflow leading to a heap buffer overflow in the bundled libvips VIPS loader (VipsForeignLoadVips), which can miscompute image dimensions. An attacker can corrupt heap memory and crash the process, with a possibility of code execution, by supplying a VIPS (.vips) image whose dimensions overflow the size calculation. Exploitation requires the application to decode an untrusted VIPS image through sharp.
Workaround
This vulnerability can be avoided by blocking the VIPS loader through sharp's block() for the VipsForeignLoadVips operation, or by setting the VIPS_BLOCK_UNTRUSTED environment variable, so untrusted VIPS images are not decoded.
Remediation
Upgrade sharp to version 0.35.0 or higher.
References
medium severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.0.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Integer Overflow in the bundled libvips GIF loader (VipsForeignLoadNsgif), which can miscompute image dimensions on 32-bit systems. An attacker can crash the process by supplying a GIF whose dimensions overflow the size calculation. Exploitation affects only 32-bit systems and requires the application to decode an untrusted GIF through sharp.
Workaround
This vulnerability can be avoided by blocking the GIF loader through sharp's block() for the VipsForeignLoadNsgif operation, or by setting the VIPS_BLOCK_UNTRUSTED environment variable, so untrusted GIF images are not decoded.
Remediation
Upgrade sharp to version 0.35.0 or higher.
References
medium severity
- Vulnerable module: sharp
- Introduced through: sharp@0.30.7
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › sharp@0.30.7Remediation: Upgrade to sharp@0.35.0.
Overview
sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Affected versions of this package are vulnerable to Out-of-bounds Read and null pointer dereference in the bundled libvips EXIF decoder, which does not validate the range of EXIF tag groups before passing them to libexif. An attacker can crash the process by supplying an image whose embedded EXIF metadata carries an out-of-range tag group. Exploitation requires the application to process an untrusted image whose EXIF metadata sharp reads.
Remediation
Upgrade sharp to version 0.35.0 or higher.
References
medium severity
- Vulnerable module: uuid
- Introduced through: aws-sdk@2.1693.0
Detailed paths
-
Introduced through: Cometa@CometaFront/Cometa › aws-sdk@2.1693.0 › uuid@8.0.0
Overview
uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.
PoC
cd /home/StrawHat/uuid
npm ci
npm run build
node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
['v4',()=>v4({},new Uint8Array(8),4)],
['v5',()=>v5('x',ns,new Uint8Array(8),4)],
['v6',()=>v6({},new Uint8Array(8),4)],
]) {
try { fn(); console.log(name,'NO_THROW'); }
catch(e){ console.log(name,'THREW',e.name); }
}"
Remediation
Upgrade uuid to version 11.1.1, 14.0.0 or higher.