{"answers":{"affected":"6 open source packages ship an affected version, including org.http4s:http4s-server_2.12. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5280 in the wild and no public exploit code.","fix":"Upgrade org.http4s:http4s-server_2.12 to a fixed version for your release line: 0.18.26, 0.20.20 or 0.21.2.","what":"CVE-2020-5280 is a high-severity path traversal vulnerability in http4s, published on 25 Mar 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5280 and fix it if it is affected.\n\nWhat it is: CVE-2020-5280 is a high-severity path traversal vulnerability in http4s, published on 25 Mar 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5280 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.http4s:http4s-server_2.12 (Maven): affected all versions; fixed in 0.18.26\n- org.http4s:http4s-server_2.12 (Maven): affected all versions; fixed in 0.18.26\n- org.http4s:http4s-server_2.12 (Maven): affected from 0.19.0; fixed in 0.20.20\n- org.http4s:http4s-server_2.12 (Maven): affected from 0.19.0; fixed in 0.20.20\n- org.http4s:http4s-server_2.12 (Maven): affected from 0.21.0; fixed in 0.21.2\n- org.http4s:http4s-server_2.12 (Maven): affected from 0.21.0; fixed in 0.21.2\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-5280/ (Markdown: https://insights.sbomify.com/CVE-2020-5280/index.md)","id":"CVE-2020-5280","markdown":"https://insights.sbomify.com/CVE-2020-5280/index.md","name":"CVE-2020-5280","record":{"aliases":["GHSA-66q9-f7ff-mmx6"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Scala HTTP library","requires_auth":"low_privilege","summary":"An attacker can read files outside the configured directory via path traversal in http4s static content services.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"http4s","vendor":"typelevel"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"http4s before versions 0.18.26, 0.20.20, and 0.21.2 has a local file inclusion vulnerability. This vulnerability applies to all users of org.http4s.server.staticcontent.FileService, org.http4s.server.staticcontent.ResourceService and org.http4s.server.staticcontent.WebjarService. URI normalization is applied incorrectly. Requests whose path info contain ../ or // can expose resources outside of the configured location. This issue is patched in versions 0.18.26, 0.20.20, and 0.21.2. Note that 0.19.0 is a deprecated release and has never been supported.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Local file inclusion vulnerability in http4s","id":"CVE-2020-5280","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":6,"n_references":4,"next":{"headline":"LDAP connector injection in Perun","id":"CVE-2020-5281"},"packages":[{"ecosystem":"Maven","fixed":["0.18.26"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":null,"source":"GHSA-66q9-f7ff-mmx6"},{"ecosystem":"Maven","fixed":["0.18.26"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","source":"GHSA-66q9-f7ff-mmx6"},{"ecosystem":"Maven","fixed":["0.20.20"],"introduced":["0.19.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":null,"source":"GHSA-66q9-f7ff-mmx6"},{"ecosystem":"Maven","fixed":["0.20.20"],"introduced":["0.19.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","source":"GHSA-66q9-f7ff-mmx6"},{"ecosystem":"Maven","fixed":["0.21.2"],"introduced":["0.21.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":null,"source":"GHSA-66q9-f7ff-mmx6"},{"ecosystem":"Maven","fixed":["0.21.2"],"introduced":["0.21.0"],"last_affected":[],"package":"org.http4s:http4s-server_2.12","purl":"pkg:maven/org.http4s/http4s-server_2.12","source":"GHSA-66q9-f7ff-mmx6"}],"prev":{"headline":"Improper Access Control for certain legacy controller in PrestaShop","id":"CVE-2020-5279"},"products":["http4s"],"published":"2020-03-25","related":[{"cvss_score":9.1,"headline":"Default CORS config allows any origin with credentials","id":"CVE-2021-39185","kev_date_added":null,"published":"2021-09-01"},{"cvss_score":8.7,"headline":"Response Splitting from unsanitized headers in http4s","id":"CVE-2021-41084","kev_date_added":null,"published":"2021-09-21"},{"cvss_score":7.5,"headline":"Http4s has fatal error parsing User-Agent and Server headers","id":"CVE-2023-22465","kev_date_added":null,"published":"2023-01-04"},{"cvss_score":7.5,"headline":"Unbounded connection acceptance in http4s-blaze-server","id":"CVE-2021-21294","kev_date_added":null,"published":"2021-02-02"},{"cvss_score":6.3,"headline":"Http4s vulnerable to HTTP Request Smuggling due to improper handling of HTTP trailer section","id":"CVE-2025-59822","kev_date_added":null,"published":"2025-09-23"},{"cvss_score":5.8,"headline":"StaticFile.fromUrl can leak presence of a directory","id":"CVE-2021-32643","kev_date_added":null,"published":"2021-05-27"}],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["http4s"]},"summary":"An attacker can read files outside the configured directory via path traversal in http4s static content services.","url":"https://insights.sbomify.com/CVE-2020-5280/"}