Session Fixation in Etherpad - #VU159509

 

Session Fixation in Etherpad - #VU159509

Published: November 5, 2026


Vulnerability identifier: #VU159509
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-384
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to take over an Etherpad user's account, including a full administrator session, through session fixation when the victim completes SSO authentication using an attacker-planted session cookie. The resulting access has the victim's privileges; for a non-administrator, the impact is limited to that user's account and pads.

The vulnerability exists due to Etherpad retaining the existing express-session identifier when an anonymous session becomes authenticated. In src/node/hooks/express/webaccess.ts, both the HTTP Basic authentication path and the plugin authentication hook assign the authenticated identity to req.session.user without calling req.session.regenerate(). A remote attacker can initiate an unauthenticated SSO flow to obtain a valid pre-authentication session cookie, plant it in the victim's browser through cookie tossing from a sibling or subdomain, interception of a non-HTTPS hop, or another cookie-injection primitive, and replay that cookie after the victim logs in to obtain the victim's authenticated session. Exploitation requires both the ability to plant the cookie and the victim's subsequent SSO login.

The demonstrated flow uses the official ep_openid_connect plugin: /ep_openid_connect/login persists OAuth nonce, state, and code-verifier values in a userless session before redirecting to the identity provider. After the victim returns through /ep_openid_connect/callback, the authentication hook binds the victim's identity to that same session without changing its identifier, enabling replay of the attacker-known express_sid cookie. This flow demonstrated full administrator takeover. The exploitable surface requires an authentication method that establishes a pre-authentication session; HTTP Basic authentication alone is not exploitable through this flow because anonymous requests receive a 401 response without a persisted cookie, while requests with an already-authenticated cookie use that session and ignore new credentials.


Affected software

Etherpad

Remediation

Install security update from vendor's website.

Etherpad - update to 3.3.3

External References

Related Security Bulletins