# Neo4j Graph Database vulnerable to Path Traversal

Advisory record · `GHSA-4mpj-488r-vh6m`

- **Identifiers:** `GHSA-4mpj-488r-vh6m` · `CVE-2021-42767`
- **State:** Confirmed
- **Severity:** CVSS 9.1 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 1 Feb 2022
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 1 Feb 2022, 22:01 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.1: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.neo4j.procedure:apoc` (Maven): affected `<3.5.17 || >=4.2.0, <4.2.10 || >=4.3.0.0, <4.3.0.4 || >=4.4.0.0, <4.4.0.1`; fixed in `3.5.17`, `4.2.10`, `4.3.0.4`, `4.4.0.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Neo4j APOC plugin (Maven org.neo4j.procedure:apoc) versions below 3.5.17, 4.2.0 through 4.2.9, 4.3.0.0 through 4.3.0.3, and 4.4.0.0 before 4.4.0.1 contain directory traversal flaws in several functions. An attacker who can call those functions can read and download files outside the configured directory, and in some cases create files. Upgrade to 3.5.17, 4.2.10, 4.3.0.4, or 4.4.0.1, or to the patched bundled version for your Neo4j release. If you cannot upgrade, restrict which procedures can run using the procedure allowlist setting.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.1 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.015, the 75th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:20 UTC: First seen by agentprime
- 31 Oct 2026, 14:20 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-4mpj-488r-vh6m)

## Sources

- [GitHub Advisory Database: GHSA-4mpj-488r-vh6m](https://github.com/advisories/GHSA-4mpj-488r-vh6m)
- [OSV: GHSA-4mpj-488r-vh6m](https://osv.dev/vulnerability/GHSA-4mpj-488r-vh6m)
- <https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-4mpj-488r-vh6m>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42767>
- <https://neo4j.com/>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-4mpj-488r-vh6m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-4mpj-488r-vh6m/>. Everything for agents: <https://agentprime.io/llms.txt>.
