Summary
CVE-2026-91995 is a critical unverified password change vulnerability (CWE-620) in the pig application by pig-mesh, affecting all versions prior to 4.1.0. The /register/password endpoint discards the result of the current-password verification check, allowing any value to be submitted in its place. As a result, a remote, unauthenticated attacker can overwrite the credentials of any account, including administrative accounts, and take over the affected system.
Technical details
- Root cause: The
/register/passwordendpoint validates the supplied "current password" against the account’s stored password, but the verification result is never enforced — the password-change logic proceeds regardless of whether the check passed or failed. - Trigger conditions: An attacker only needs to know or guess a valid username; no valid credentials, session, or prior authentication are required to invoke the endpoint.
- Attack vector: Network-based, requiring no user interaction and no privileges (AV:N/AC:L/PR:N/UI:N).
- Impact: Complete compromise of account confidentiality and integrity — an attacker can reset any user’s password, including administrator accounts, leading to full application takeover.
Affected software
- pig-mesh pig: all versions prior to 4.1.0
Severity
- CVSS v4.0: 9.3 (Critical) —
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 9.1 (Critical) —
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade pig to version 4.1.0 or later, which fixes the unverified password-change logic in the
/register/passwordendpoint. - If no patch can be applied immediately:
- Restrict or disable public access to the
/register/passwordendpoint until the upgrade can be completed. - Monitor for unexpected password-change requests, particularly against administrative accounts.
- Enforce multi-factor authentication on privileged accounts to limit the impact of a credential takeover.
- Rotate credentials for all accounts, especially administrative ones, after upgrading.
- Restrict or disable public access to the

