CVE-2025-8625 Hardcoded credentials in Copypress Rest API
Unauthenticated attackers can exploit a hard-coded JWT secret and missing file validation to upload malicious files and execute remote code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-8625?
CVE-2025-8625 is a critical vulnerability in copypressdev Copypress Rest API, published on 30 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Copypress Rest API plugin for WordPress is vulnerable to Remote Code Execution via copyreap_handle_image() Function in versions 1.1 to 1.2. The plugin falls back to a hard-coded JWT signing key when no secret is defined and does not restrict which file types can be fetched and saved as attachments. As a result, unauthenticated attackers can forge a valid token to gain elevated privileges and upload an arbitrary file (e.g. a PHP script) through the image handler, leading to remote code execution.
Weakness: CWE-321
Which versions are affected by CVE-2025-8625?
How do I fix CVE-2025-8625?
No fix has been published for CVE-2025-8625 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-8625 being exploited?
There is no known exploitation of CVE-2025-8625 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Sources
Also known as GHSA-v536-8hrh-rxx4.