CVE-2022-25851
HIGH 7.5CVSS 3.1Infinite loop in jpeg-js
The package jpeg-js before 0.4.4 are vulnerable to Denial of Service (DoS) where a particular piece of input will cause to enter an infinite loop and never return.
- Published
- 10 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- GHSA-xvf7-4v9q-58w6
- Sources
- NVDJSONOSV GHSA-xvf7-4v9q-58w6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jpeg-js_project | jpeg-jscpe:2.3:a:jpeg-js_project:jpeg-js:*:*:*:*:*:node.js:*:* |
< 0.4.4 | 0.4.4 |
| OSV | npm | jpeg-js | < 0.4.4 | 0.4.4 |
References
- https://github.com/jpeg-js/jpeg-js/commit/9ccd35fb5f55a6c4f1902ac5b0f270f675750c27 · Patch, Third Party Advisory, WEB
- https://github.com/jpeg-js/jpeg-js/issues/105 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/jpeg-js/jpeg-js/pull/106/ · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2860295 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-JPEGJS-2859218 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25851 · ADVISORY
- https://github.com/jpeg-js/jpeg-js · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 10 Jun 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Jun 2022)