VDB
Sign up
HIGH7.5

GHSA-wf7x-fh6w-34r6

Path Traversal in Ghost

Quick fix

GHSA-wf7x-fh6w-34r6 — ghost: upgrade to the fixed version with the command below.

npm install ghost@5.42.1

Details

Ghost before 5.42.1 allows remote attackers to read arbitrary files within the active theme's folder via /assets/built%2F..%2F..%2F/ directory traversal. This occurs in frontend/web/middleware/static-theme.js.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/ghost
Introduced in: 0Fixed in: 5.42.1
Fixnpm install ghost@5.42.1

References