Description
Grimoire before 1.0.0 contains an unauthenticated server-side request forgery vulnerability in the /api/fetch-metadata POST handler that passes user-supplied URLs to getMetadata() without authentication checks. Attackers can submit URLs targeting loopback, internal-network, or cloud metadata endpoints and read the parsed title, description, and page content returned.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
goniszewski grimoire
Default version status: unaffected
0 to < 1.0.0affected
References
- https://github.com/goniszewski/grimoire/issues/237 ↗
- https://github.com/goniszewski/grimoire ↗
- https://github.com/goniszewski/grimoire/blob/v0.5.0/src/routes/api/fetch-metadata/%2Bserver.ts ↗
- https://github.com/goniszewski/grimoire/blob/v0.5.0/src/lib/utils/get-metadata.ts ↗
- https://hackmd.io/@hieuPenguinnn/grimoire-fetch-metadata-ssrf ↗
- https://www.vulncheck.com/advisories/grimoire-before-1.0.0-unauthenticated-ssrf-via-api-fetch-metadata ↗