## Summary
GHSA-qq6c-99pv-prvf was fixed by moving the per-project plugin library out of the project, to `<cache_dir>/plugins/<project name>-<hash>`. `cache_dir` is declared global-only, but that is checked only when a value is written. A `pdm.toml` committed to a repository (the docs recommend committing it) can still set `cache_dir`, and the plugin library path is then computed under a directory the repository controls. A repository can ship that directory with a `.pth` file, and pdm runs it at startup, before parsing arguments. In my test `pdm --version` was enough.
The plugin directory name contains a hash of the absolute project path, so the repository has to guess where it will be checked out. In CI and container builds the path is usually fixed (`/app`, `/home/runner/work/<repo>/<repo>`, `/workspaces/<repo>`), and a repository can include directories for several guesses.
## Details
Line numbers are for 2.29.7 (main 4d5c6216 has the same three files).
- `src/pdm/project/config.py:111-115` declares `cache_dir` with `global_only=True`. The check is in `__setitem__` (`:422`); `__getitem__` (`:369-393`) returns the project file's value, and `Config.__init__` loads the project file without filtering (`:316`).
- `src/pdm/project/core.py:252-256`: `Project.config` is `ChainMap(project_config, global_config)`, so the project value wins.
- `src/pdm/project/core.py:121-128`: `cache_dir` is read from that config, and `project_plugins_dir` is `cache_dir / "plugins" / f"{root.n