All advisories

Vulnerability disclosure

Forged extension responses accepted by the Web eID JavaScript library

web-eid.js (≤ 2.1.0) – Web eID, Estonian Information System Authority

OffSeq found that web-eid.js, the JavaScript library websites use to talk to the Web eID browser extension, accepted extension responses from any window. An embedded iframe, a framing parent or another window could forge success or failure responses and settle a pending authentication or signing request with attacker-controlled data. OffSeq reported the issue and contributed the fix, which the Web eID maintainers tested and merged.

OffSeq

2 min read

Severity: MediumCVSS 4.2web-eid/web-eid.js#84

Key facts

Class
Origin validation error (CWE-346, CWE-940)
Severity
Medium
CVSS
4.2
Target
web-eid.js
Vendor
Web eID – Estonian Information System Authority (RIA)
Affected
≤ 2.1.0 – WebExtensionService.receive()
Fixed in
web-eid/web-eid.js PR #85 (merged, commit b7a0b6f)
Status
Fixed upstream
Role
Reporter and fix author

CVSS base score

4.2

/ 10Medium

Every score is built from eight plain questions about how an attack works and what it costs you.

How hard it is to exploit

What the attacker can do

Select a metric to see what it means

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

§ 01. Overview

Web eID is the Estonian Information System Authority's open-source solution for authenticating and signing with national ID cards in the browser. A website loads web-eid.js, which sends requests to the Web eID browser extension and waits for its responses. The extension's content script runs inside the same page and posts each response back into the page window, where web-eid.js matches it to the pending authenticate(), sign(), getSigningCertificate() or status() call.

OffSeq found that web-eid.js did not check where those responses came from.

§ 02. Root cause

WebExtensionService.receive() listened for message events on window and accepted any message whose action was a string starting with web-eid::

typescript
1private receive(event: { data: ExtensionResponse }): void {2  if (typeof event.data?.action !== "string") return;3  if (!event.data.action.startsWith("web-eid:")) return;
Listing 1Pre-patch receive() in WebExtensionService.ts: no check of event.source or event.origin.

Any context that can post a message to the page – an embedded iframe such as an ad or widget, a malicious page framing the site, or a window it opened – could send web-eid:*-success, *-failure or *-ack messages. web-eid.js treated them as genuine extension responses. The extension's own content script already accepted only messages where event.source === window; the library did not apply the same rule.

§ 03. Impact

A forged response settles the pending request with data the attacker chooses. The attacker can abort an authentication or signing flow, answer before the real extension does, or hand the page a fake certificate or token. A page that trusts that data before server-side verification, for example to show the signer's name, would display spoofed information.

This is not a server-side authentication bypass. The relying party still verifies the token's certificate and signature, and the extension and native application bind the real origin. The impact is limited to the client side.

§ 04. The fix

OffSeq contributed a fix that rejects any message not sent by the page's own window and origin, which is how the content script posts genuine responses:

typescript
1if (event.source !== window) return;2if (event.origin !== window.location.origin) return;

Existing tests now dispatch responses the way the content script does, and new regression tests confirm that responses from a foreign source or origin are ignored while a same-window response still resolves. After resolving its impact on integrators that embed Web eID in iframes, the maintainers tested the change and merged it as pull request #85.

§ 05. Disclosure timeline

  1. 2026-06-24OffSeq reports the missing sender validation (issue #84) and submits a fix upstream (PR #85)
  2. 2026-10-27Maintainers resolve the open question on impact for integrators that use iframes
  3. 2026-11-24Fix tested, approved and merged by the Web eID maintainers

References

Credit

Discovered, reported, and fixed by Nils Putniņš (OffSeq Cybersecurity).

How we would test your environment

More results

Unauthenticated session forging in the MONEO ERP server

CVE-2026-59103 is an authentication bypass OffSeq found in MONEO, a Latvian ERP system. The server exposes a Ping method over its WebSocket JSON-RPC interface without requiring a session. The method's only guard checks an application name that the client supplies itself. Ping then writes an attacker-chosen session ID, user and company into the server session store. Any network attacker can therefore forge a valid session as any user, including administrators, in any company on the shared multi-tenant database. MONEO Latvia fixed it in the release of 3 August 2026.

Vulnerability disclosure20264 min read

Cross-user report access in CERT.LV’s Graphoscope

OffSeq found a horizontal authorisation bypass in Graphoscope, the open-source platform CERT.LV publishes for querying many independent data sources from one interface and showing their relations as a graph. The report download endpoint checked that a user was signed in but not that the requested report was theirs, so any analyst could read another analyst's uploaded indicators and query results. OffSeq reported the issue to CERT.LV and contributed the fix, which CERT.LV merged.

Vulnerability disclosure20262 min read

Server crash in CERT.LV’s Graphoscope when a user disconnects during an upload

OffSeq found a denial-of-service flaw in Graphoscope, the open-source platform CERT.LV publishes for querying many independent data sources from one interface and showing their relations as a graph. A user who uploaded an indicator list and closed the connection before processing finished made the server dereference a nil WebSocket and crash, signing out every user. Any self-registered account could trigger it reliably. OffSeq reported the issue to CERT.LV and contributed the fix, which CERT.LV merged.

Vulnerability disclosure20263 min read

Have similar exposure in your environment?

support@offseq.com+371 2256 5353