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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| goniszewski | grimoire | < 1.0.0 | 1.0.0 |
References
- GitHub Issue #237 issue-tracking
- https://github.com/goniszewski/grimoire product
- https://github.com/goniszewski/grimoire/blob/v0.5.0/src/routes/api/fetch-metadata/%2Bserver.ts technical-description
- https://github.com/goniszewski/grimoire/blob/v0.5.0/src/lib/utils/get-metadata.ts technical-description
- https://hackmd.io/@hieuPenguinnn/grimoire-fetch-metadata-ssrf third-party-advisory
- VulnCheck Advisory: Grimoire before 1.0.0 Unauthenticated SSRF via /api/fetch-metadata third-party-advisory