Security: override graphql-scalars to ^2.0.1 (GHSA-x8rm-f576-gq67)
@payloadcms/graphql pins graphql-scalars 1.22.2 up to the latest Payload (3.92.1), so no Payload upgrade fixes the high PhoneNumber ReDoS advisory. Repo-only pnpm.overrides entry "graphql-scalars@<2.0.1": "^2.0.1" (not passed to projects). Payload only imports DateTimeResolver and EmailAddressResolver; checked against the dev app's /api/graphql: login, DateTime and EmailAddress as input and output, a JSON field, and an invalid e-mail rejected. pnpm audit --prod: 1 high + 1 low -> 1 low (deepmerge, no fix published). Docs: AGENT.md §4 item 12, ipal-setup, ipal-upgrade, README, CHANGELOG Unreleased recommend the same override to projects. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f57d089f55
commit
927798105e
@@ -88,8 +88,8 @@ pnpm add @payloadcms/[email protected] # only with R2 media
|
||||
|
||||
Keep every `@payloadcms/*` at exactly the same version as `payload`
|
||||
(`pnpm.overrides` — see PROGRAMISTA.md §1). Then run `pnpm audit --prod`: with
|
||||
`payload` 3.90.x, Payload's own tree pins a vulnerable `undici` and `dompurify` —
|
||||
add the two overrides from [AGENT.md §4 item 12](./docs/agent/AGENT.md) (recommended, not
|
||||
`payload` 3.90.x, Payload's own tree pins a vulnerable `undici`, `dompurify` and
|
||||
`graphql-scalars` (the last one even in the latest Payload) — add the three overrides from [AGENT.md §4 item 12](./docs/agent/AGENT.md) (recommended, not
|
||||
required by the plugin). Upload optimization and image
|
||||
placeholders also use the `sharp` you pass to `buildConfig({ sharp })`
|
||||
(standard in a `create-payload-app` project).
|
||||
|
||||
Reference in New Issue
Block a user