GHSA-4vjr-crvh-383h: @napi rs/image @napi-rs/image Affected By Libwebp CVE Vulnerability

HIGH
CVSS 8.8
Published
Advisory Summary

GHSA-4vjr-crvh-383h is a HIGH (CVSS 8.8) @napi-rs/image affected by libwebp cve vulnerability (General Security Weakness) affecting @napi rs/image libraries in the npm ecosystem. The issue involves @napi-rs/image affected by libwebp cve. Remediation is available by upgrading affected packages to version 1.7.0.

GHSA-4vjr-crvh-383h at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4vjr-crvh-383h
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification General Security Weakness
Affected Product @napi rs/image
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-4vjr-crvh-383h

To remediate this vulnerability, upgrade all affected @napi rs/image dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@napi-rs/image fixed: 1.7.0
npm install @napi-rs/image@1.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @napi-rs/image

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-4vjr-crvh-383h, inspect your project dependencies using npm:

npm ls @napi-rs/image

Analyze the terminal output to locate any version of @napi rs/image in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.0), your application is affected.

Note: The npm ls @napi-rs/image command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In @napi rs/image, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Heap buffer overflow in `libwebp` allows a remote attacker to perform an out of bounds memory write via a crafted webp image. ### References - https://github.com/advisories/GHSA-j7hp-h8jx-5ppr - https://blog.isosceles.com/the-webp-0day/

GHSA-4vjr-crvh-383h Affected @napi rs/image Versions

1 component(s)
Fixed Versions:
1.7.0
Product / Package Ecosystem Affected Versions Fixed Version
@napi-rs/image
npm
< 1.7.0
1.7.0

References

Frequently Asked Questions

What is GHSA-4vjr-crvh-383h?
GHSA-4vjr-crvh-383h is a security vulnerability in @napi rs/image involving @napi-rs/image affected by libwebp CVE under General Security Weakness.
Which @napi rs/image versions are affected?
Affected versions include releases prior to 1.7.0 across affected packages: @napi-rs/image.
What version fixes GHSA-4vjr-crvh-383h?
Upgrading to 1.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @napi-rs/image affected?
Yes, @napi-rs/image is affected in releases prior to 1.7.0. Upgrade your dependency to 1.7.0 or later.
What is the CVSS score of GHSA-4vjr-crvh-383h?
GHSA-4vjr-crvh-383h has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-4vjr-crvh-383h?
GHSA-4vjr-crvh-383h is classified under General Security Weakness.
How can I check npm dependencies for GHSA-4vjr-crvh-383h?
Run the dependency tree command: 'npm ls @napi-rs/image'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4vjr-crvh-383h",
  "modified" : "2023-09-27T20:17:00Z",
  "published" : "2023-09-27T20:17:00Z",
  "aliases" : [ ],
  "summary" : "@napi-rs/image affected by libwebp CVE",
  "details" : "### Impact\nHeap buffer overflow in `libwebp` allows a remote attacker to perform an out of bounds memory write via a crafted webp image.\n\n### References\n- https://github.com/advisories/GHSA-j7hp-h8jx-5ppr\n- https://blog.isosceles.com/the-webp-0day/\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@napi-rs/image"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Brooooooklyn/Image/security/advisories/GHSA-4vjr-crvh-383h"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Brooooooklyn/Image/commit/aa07979f6cd0c534a8befea87fac1210a3b621c1"
  }, {
    "type" : "WEB",
    "url" : "https://blog.isosceles.com/the-webp-0day"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Brooooooklyn/Image"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Brooooooklyn/Image/releases/tag/%40napi-rs%2Fimage%401.7.0"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-j7hp-h8jx-5ppr"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-27T20:17:00Z",
    "nvd_published_at" : null
  }
}