CVE-2024-34706 @valtimo/components exposes access token to form.io

Critical 9.8 Published Updated

Attackers with network access can steal JWT tokens exposed to Form.io, allowing them to read personal data or impersonate users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-34706?

CVE-2024-34706 is a critical vulnerability in valtimo-platform valtimo-frontend-libraries, published on 13 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Valtimo is an open source business process and case management platform. When opening a form in Valtimo, the access token (JWT) of the user is exposed to `api.form.io` via the the `x-jwt-token` header. An attacker can retrieve personal information from this token, or use it to execute requests to the Valtimo REST API on behalf of the logged-in user. This issue is caused by a misconfiguration of the Form.io component.

The following conditions have to be met in order to perform this attack: An attacker needs to have access to the network traffic on the `api.form.io` domain; the content of the `x-jwt-token` header is logged or otherwise available to the attacker; an attacker needs to have network access to the Valtimo API; and an attacker needs to act within the time-to-live of the access token. The default TTL in Keycloak is 5 minutes.

Versions 10.8.4, 11.1.6 and 11.2.2 have been patched.

Weakness: CWE-532

Which versions are affected by CVE-2024-34706?

6 open source packages ship an affected version, including @valtimo/components.

PackageAffectedFixed in
@valtimo/components npmAll versions10.8.4
@valtimo/components npmAll versions10.8.4
@valtimo/components npmFrom 11.0.011.1.6
@valtimo/components npmFrom 11.0.011.1.6
@valtimo/components npmFrom 11.2.011.2.2
@valtimo/components npmFrom 11.2.011.2.2

How do I fix CVE-2024-34706?

Upgrade @valtimo/components to a fixed version for your release line: 10.8.4, 11.1.6 or 11.2.2.

Is CVE-2024-34706 being exploited?

There is no known exploitation of CVE-2024-34706 in the wild and no public exploit code.

Sources

Also known as GHSA-xcp4-62vj-cq3r.

Is CVE-2024-34706 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free