Vulnerabilities in pkg:npm/@napi-rs/image
PACKAGEGHSA-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.
pkg:npm/@napi-rs/image
Vulnerability advisories affecting package pkg:npm/@napi-rs/image. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4vjr-crvh-383h | - | HIGH | @napi-rs/image affected by libwebp CVE |
GHSA-4vjr-crvh-383h at a Glance
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).
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.
npm install @napi-rs/image@1.7.0
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
GHSA-4vjr-crvh-383h Affected @napi rs/image Versions
1 component(s)| 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?
Which @napi rs/image versions are affected?
What version fixes GHSA-4vjr-crvh-383h?
Is @napi-rs/image affected?
What is the CVSS score of GHSA-4vjr-crvh-383h?
What CWE is associated with GHSA-4vjr-crvh-383h?
How can I check npm dependencies for GHSA-4vjr-crvh-383h?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}