Copypressdev Copypress Rest API
Copypress Rest API 1.1 - 1.2 - Missing Configurable JWT Secret and File-Type Validation to Unauthenticated Remote Code Execution
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.1, <= 1.2
Mitigation
The record names no fix. Check the vendor advisory below.
Timeline
Days relative to CVE publicationFirst public PoC 3.6 days after publication; not in CISA KEV. First PoC: Nxploited/CVE-2025-8625 (created 3 Oct 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Nxploited/CVE-2025-8625 | 3 Oct 2025 +3.6 d | 3 | Scanner |
| ret0x2A/CVE-2025-8625 | 6 Oct 2025 +6.5 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /wp-json/copypress-api/v1/posts
- Key headers
Accept: application/jsonAuthorization: Bearer {var}- Body markers
"title":"Test""content":"PoC""image""title":"Test Post""content":"Test Content"inapplication/json- Ports
- 8080, 8081
- PoC User-Agent
Mozilla/5.0- Seen in
- 2 repos: Nxploited/CVE-2025-8625, ret0x2A/CVE-2025-8625
- Evidence
- Nxploited/CVE-2025-8625/CVE-2025-8625.py:60 ret0x2A/CVE-2025-8625/exploit/CVE-2025-8625.py:52
GET /wp-content/uploads/{var}/{var}/{var}
- Query
cmd=- Ports
- 8080, 8081
- Seen in
- 1 repo: ret0x2A/CVE-2025-8625
- Evidence
- ret0x2A/CVE-2025-8625/exploit/CVE-2025-8625.py:65
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/wp-json/copypress-api/v1/posts(?:[?#].*)?$
(?i)^/wp-content/uploads/[^/?#]*/[^/?#]*/[^/?#]*\?(?:.*&)?cmd=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2025-8625 copypressdev Copypress Rest API exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/wp-json/copypress-api/v1/posts"; http.header; content:"Accept: application/json"; nocase; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|title|22|:|22|Test|22|"; http.request_body; content:"|22|content|22|:|22|PoC|22|"; http.request_body; content:"|22|image|22|"; http.request_body; content:"|22|title|22|:|22|Test Post|22|"; http.request_body; content:"|22|content|22|:|22|Test Content|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-8625; classtype:web-application-attack; sid:9218516; rev:1;)
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2025-8625 copypressdev Copypress Rest API exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wp-content/uploads/"; http.uri; content:"cmd="; reference:url,poc.griffinguard.io/cve/CVE-2025-8625; classtype:web-application-attack; sid:9336250; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: copypressdev Copypress Rest API exploit attempt (CVE-2025-8625)
id: gg-pocmon-cve-2025-8625-9218516
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-8625. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-8625
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/wp-json/copypress-api/v1/posts'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.8625
title: copypressdev Copypress Rest API exploit attempt (CVE-2025-8625)
id: gg-pocmon-cve-2025-8625-9336250
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-8625. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-8625
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/wp-content/uploads/'
cs-uri-query|contains|all:
- 'cmd='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.8625