Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-29256: sharp is an application for Node.js image processing

31
Routine
MEDIUM 6.5UPGRADE

CVE-2022-29256 is a medium-severity flaw (CVSS 6.5) affecting sharp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

sharp is an application for Node.js image processing. Prior to version 0.30.5, there is a possible vulnerability in logic that is run only at `npm install` time when installing versions of `sharp` prior to the latest v0.30.5. If an attacker has the ability to set the value of the `PKG_CONFIG_PATH` environment variable in a build environment then they might be able to use this to inject an arbitrary command at `npm install` time. This is not part

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.5 (Medium)
Attack vectorLocal
Attack complexityLow
Privileges neededHigh
User interactionRequired
EPSS exploit chance0.4% (top 67%)
CISA exploited listNo
WeaknessCWE-77, CWE-78
Published2022-05-25
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: sharp project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

sharp project sharp UPGRADE
Affected: < 0.30.5
Fixed in: 0.30.5
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls sharp
2. UPGRADE to 0.30.5
npm install sharp@">=0.30.5"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-29256?

sharp: upgrade to 0.30.5. Exact commands for each OS are on this page.

Is CVE-2022-29256 being exploited?

CVE-2022-29256 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-29256 affect?

CVE-2022-29256 affects sharp. Severity is medium (CVSS 6.5). sharp is an application for Node.js image processing. Prior to version 0.30.5, there is a possible vulnerability in logic that is run only at `npm install` time when installing versions of `sharp` prior to the latest v0.30.5. If an attacker

How urgent is CVE-2022-29256?

Priority 31/100. No elevated risk signals yet.

Software pages

Node.js vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.