{"answers":{"affected":"2 open source packages ship an affected version, including jpeg-js. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-8175 in the wild and no public exploit code.","fix":"Upgrade jpeg-js to 0.4.0 or later.","what":"CVE-2020-8175 is a medium-severity denial of service vulnerability in jpeg-js, published on 24 Jul 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-8175 and fix it if it is affected.\n\nWhat it is: CVE-2020-8175 is a medium-severity denial of service vulnerability in jpeg-js, published on 24 Jul 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-8175 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jpeg-js (npm): affected all versions; fixed in 0.4.0\n- jpeg-js (npm): affected all versions; fixed in 0.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-8175/ (Markdown: https://insights.sbomify.com/CVE-2020-8175/index.md)","id":"CVE-2020-8175","markdown":"https://insights.sbomify.com/CVE-2020-8175/index.md","name":"CVE-2020-8175","record":{"aliases":["GHSA-w7q9-p3jq-fmhm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript JPEG library","requires_auth":"none","summary":"Attackers can cause denial of service in applications using jpeg-js by submitting specially crafted JPEG images.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"jpeg-js","vendor":"jpeg-js_project"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Uncontrolled resource consumption in `jpeg-js` before 0.4.0 may allow attacker to launch denial of service attacks using specially a crafted JPEG image.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2021-01-07","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-01-07T09:31:26Z","kind":"github_poc","ref":"https://github.com/knokbak/get-pixels-updated","stars":1,"title":"An updated version of get-pixels that patches the CVE-2020-8175 security issue."},{"date":"2021-01-07T10:41:09Z","kind":"github_poc","ref":"https://github.com/knokbak/save-pixels-updated","stars":0,"title":"An updated version of save-pixels that patches the CVE-2020-8175 security issue."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Uncontrolled resource consumption in jpeg-js","id":"CVE-2020-8175","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2020"},"n_packages":2,"n_references":1,"next":{"headline":"Cross-site scripting in @shopify/koa-shopify-auth","id":"CVE-2020-8176"},"packages":[{"ecosystem":"npm","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"jpeg-js","purl":null,"source":"GHSA-w7q9-p3jq-fmhm"},{"ecosystem":"npm","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"jpeg-js","purl":"pkg:npm/jpeg-js","source":"GHSA-w7q9-p3jq-fmhm"}],"prev":{"headline":"Memory corruption in https://github.com/nodejs/node","id":"CVE-2020-8174"},"products":["jpeg-js"],"published":"2020-07-24","related":[{"cvss_score":7.5,"headline":"Denial of Service (DoS)","id":"CVE-2022-25851","kev_date_added":null,"published":"2022-06-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can cause denial of service in applications using jpeg-js by submitting specially crafted JPEG images.","url":"https://insights.sbomify.com/CVE-2020-8175/"}