# CVE-2026-91995: pig authentication bypass in password reset endpoint

Source: https://junglewise.ai/threats/cve-2026-91995-pig-authentication-bypass-in-password-reset-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-15. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-91995 · Severity: critical · CVSS 9.1 · Published 2026-09-15

pig is an RBAC permission management system used to control user access and roles in Spring Cloud applications. A critical flaw in the password reset feature allows attackers to reset any user's password—including the administrator account—without providing valid credentials. This enables complete takeover of the system and full administrative control.

Technologies: [Pig-Mesh Pig](https://junglewise.ai/threats/technologies/pig). Vendors: [Pig-Mesh](https://junglewise.ai/threats/vendors/pig-mesh).

## Quick answers

**Is CVE-2026-91995 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-91995 being exploited in the wild.

**How severe is CVE-2026-91995?** Critical severity, with a CVSS score of 9.1, published 15 September 2026.

**Which products and versions are affected?** Pig-Mesh Pig before 4.1.0.

**Is there a fix for CVE-2026-91995?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-91995 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-91995?** Check whether you run Pig-Mesh Pig at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability combines two flaws in SysRegisterController and SysUserServiceImpl: (1) the /register/password endpoint is exposed without authentication due to @Inner(value = false) configuration that adds it to Spring Security's permitAll() list, and (2) the checkPassword() method returns R.ok(false, msg) on password mismatch instead of R.failed(msg), causing isOk() to always return true regardless of the boolean data field. This causes the password verification guard in resetUserPassword() to never block the update, allowing any attacker with network access to reset any account's password by submitting a username with any incorrect password value. No authentication token is required. The fix requires replacing R.ok(false, msg) with R.failed(msg) and adding authentication requirements to the controller.

## Affected products

- pig-mesh pig before 4.1.0

## Timeline

- 2026-06-17: disclosed: Vulnerability opened as pig-mesh/pig#1249
- 2026-07-20: other: Issue closed as completed
- 2026-07-21: other: Reported to maintainers via email
- 2026-09-14: disclosed: Public disclosure after 14 September (no maintainer response)
- 2026-09-15: advisory: CVE-2026-91995 published

## References

- [https://github.com/geo-chen/oss/blob/main/pig.md](https://github.com/geo-chen/oss/blob/main/pig.md)
- [https://github.com/pig-mesh/pig](https://github.com/pig-mesh/pig)

## Related threats

- [Pig RBAC authorization bypass in SysClientController](https://junglewise.ai/threats/cve-2026-125377-pig-before-4-1-2-contains-a-missing-authorization-vulnerability)
- [pig-mesh pig SQL injection in pagination sorting](https://junglewise.ai/threats/cve-2026-115997-a-flaw-has-been-found-in-pig-mesh-pig-up-to-4-1-0-this-impacts)
- [pig missing authorization in SysUserController.user](https://junglewise.ai/threats/cve-2026-111343-pig-through-4-1-1-contains-a-missing-authorization-vulnerability)
- [pig-mesh Pig code injection in pig-codegen](https://junglewise.ai/threats/cve-2026-15512-pig-mesh-pig-code-injection-in-pig-codegen)
