NginxPulse SQL injection via /api/stats/:type
CVE-2026-129171
A web statistics program can be hacked, letting attackers steal database contents and server files!
- CVE
- CVE-2026-129171 (opens in a new tab)
- Score
- CVSS 9.8
- Public date
- 2026-10-30
- First seen
Mitigation
Update to NginxPulse 1.6.26 or later. Until then, configure system.accessKeys so attackers must hold one of those keys.
Can't update yet?
Add this line to the config file:
system.accessKeys
A wrong setting can stop the service or lock you out. Check the source links below first.
Summary
The /api/stats/:type endpoint in NginxPulse does not validate the id and locationType parameters, so an unauthenticated remote attacker can run SQL. Versions 1.5.0 before 1.6.26 are affected, and attackers can read database contents and server files.
Exploit code is public
Affected when
No access keys (system.accessKeys) configured
Incidents by product: NginxPulse
Read the write-up · vul.yulun.ac.cn (opens in a new tab)
Write-up (4): vul.yulun.ac.cn, github.com and more
- CVE record: cve.org (opens in a new tab)