Vulnerabilities

9 via 15 paths

Dependencies

1111

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 9
  • 2
Severity
  • 1
  • 4
  • 6
Status
  • 11
  • 0
  • 0

critical severity

Resources Downloaded over Insecure Protocol

  • Vulnerable module: esbuild
  • Introduced through: esbuild@0.24.2 and vite@6.4.3

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search esbuild@0.24.2
    Remediation: Upgrade to esbuild@0.28.1.
  • Introduced through: earthdata-search@nasa/earthdata-search vite@6.4.3 esbuild@0.25.12
    Remediation: Upgrade to vite@7.3.6.

Overview

esbuild is an An extremely fast JavaScript and CSS bundler and minifier.

Affected versions of this package are vulnerable to Resources Downloaded over Insecure Protocol in the installFromNPM process. An attacker can execute arbitrary code with the privileges of the Deno process by supplying a malicious binary through control of the NPM_CONFIG_REGISTRY environment variable.

Remediation

Upgrade esbuild to version 0.28.1 or higher.

References

high severity

Open Redirect

  • Vulnerable module: react-router
  • Introduced through: react-router-dom@6.30.6

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search react-router-dom@6.30.6 react-router@6.30.6
    Remediation: Upgrade to react-router-dom@7.18.0.

Overview

Affected versions of this package are vulnerable to Open Redirect via the navigation mechanisms when attacker-supplied paths containing a backslash are processed. An attacker can redirect users to unintended external sites by crafting malicious links or inputs.

Remediation

Upgrade react-router to version 7.18.0 or higher.

References

high severity

Heap-based Buffer Overflow

  • Vulnerable module: sharp
  • Introduced through: sharp@0.33.5 and vite-imagetools@7.1.1

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search sharp@0.33.5
    Remediation: Upgrade to sharp@0.35.0.
  • Introduced through: earthdata-search@nasa/earthdata-search vite-imagetools@7.1.1 sharp@0.34.5
    Remediation: Upgrade to vite-imagetools@10.0.1.

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

Integer Overflow

  • Vulnerable module: sharp
  • Introduced through: sharp@0.33.5 and vite-imagetools@7.1.1

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search sharp@0.33.5
    Remediation: Upgrade to sharp@0.35.0.
  • Introduced through: earthdata-search@nasa/earthdata-search vite-imagetools@7.1.1 sharp@0.34.5
    Remediation: Upgrade to vite-imagetools@10.0.1.

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

high severity

GPL-3.0 license

  • Module: hex-to-rgba
  • Introduced through: hex-to-rgba@2.0.1

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search hex-to-rgba@2.0.1

GPL-3.0 license

medium severity

Integer Overflow

  • Vulnerable module: sharp
  • Introduced through: sharp@0.33.5 and vite-imagetools@7.1.1

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search sharp@0.33.5
    Remediation: Upgrade to sharp@0.35.0.
  • Introduced through: earthdata-search@nasa/earthdata-search vite-imagetools@7.1.1 sharp@0.34.5
    Remediation: Upgrade to vite-imagetools@10.0.1.

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

Out-of-bounds Read

  • Vulnerable module: sharp
  • Introduced through: sharp@0.33.5 and vite-imagetools@7.1.1

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search sharp@0.33.5
    Remediation: Upgrade to sharp@0.35.0.
  • Introduced through: earthdata-search@nasa/earthdata-search vite-imagetools@7.1.1 sharp@0.34.5
    Remediation: Upgrade to vite-imagetools@10.0.1.

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

Use of a Cryptographic Primitive with a Risky Implementation

  • Vulnerable module: elliptic
  • Introduced through: vite-plugin-node-polyfills@0.23.1

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search vite-plugin-node-polyfills@0.23.1 node-stdlib-browser@1.3.1 crypto-browserify@3.12.1 browserify-sign@4.2.6 elliptic@6.6.1
  • Introduced through: earthdata-search@nasa/earthdata-search vite-plugin-node-polyfills@0.23.1 node-stdlib-browser@1.3.1 crypto-browserify@3.12.1 create-ecdh@4.0.4 elliptic@6.6.1

Overview

elliptic is a fast elliptic-curve cryptography implementation in plain javascript.

Affected versions of this package are vulnerable to Use of a Cryptographic Primitive with a Risky Implementation due to the incorrect computation of the byte-length of k value with leading zeros resulting in its truncation. An attacker can obtain the secret key by analyzing both a faulty signature generated by a vulnerable implementation and a correct signature for the same inputs.

Note:

There is a distinct but related issue CVE-2024-48948.

Remediation

There is no fixed version for elliptic.

References

medium severity

Improper Validation of Specified Index, Position, or Offset in Input

  • Vulnerable module: uuid
  • Introduced through: uuid@8.3.2

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search uuid@8.3.2
    Remediation: Upgrade to uuid@11.1.1.

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.

References

medium severity

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

  • Vulnerable module: react-router
  • Introduced through: react-router-dom@6.30.6

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search react-router-dom@6.30.6 react-router@6.30.6
    Remediation: Upgrade to react-router-dom@7.18.0.

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in the deserializeErrors function during SSR hydration. An attacker can cause unexpected constructor execution on the client, potentially resulting in outbound network traffic, by supplying crafted input that overwrites certain aspects of errors caught by the SSR process.

Note: This is only exploitable if the application is running in Framework Mode or Data Mode and performs manual SSR/hydration with code that allows attacker-controlled input to influence error deserialization.

Remediation

Upgrade react-router to version 7.18.0 or higher.

References

medium severity

MPL-2.0 license

  • Module: lightningcss
  • Introduced through: vitest@4.1.11

Detailed paths

  • Introduced through: earthdata-search@nasa/earthdata-search vitest@4.1.11 vite@8.2.2 lightningcss@1.33.0

MPL-2.0 license