GHSA-xcp4-62vj-cq3r

Suggest an improvement
Source
https://github.com/advisories/GHSA-xcp4-62vj-cq3r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-xcp4-62vj-cq3r/GHSA-xcp4-62vj-cq3r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xcp4-62vj-cq3r
Aliases
Published
2024-05-13T16:04:55Z
Modified
2026-09-10T03:50:14Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
@valtimo/components exposes access token to form.io
Details

Impact

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.

Attack requirements

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.
  • An attacker needs to act within the time-to-live of the access token. The default TTL in Keycloak is 5 minutes.

Patches

Versions 10.8.4, 11.1.6 and 11.2.2 have been patched

Database specific
{
    "cwe_ids":  [
        "CWE-532"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2024-05-13T16:04:55Z",
    "nvd_published_at":  "2024-05-14T15:39:29Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / @valtimo/components

Package

Name
@valtimo/components
View open source insights on deps.dev
Purl
pkg:npm/%40valtimo/components

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
10.8.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-xcp4-62vj-cq3r/GHSA-xcp4-62vj-cq3r.json"

npm / @valtimo/components

Package

Name
@valtimo/components
View open source insights on deps.dev
Purl
pkg:npm/%40valtimo/components

Affected ranges

Type
SEMVER
Events
Introduced
11.0.0
Fixed
11.1.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-xcp4-62vj-cq3r/GHSA-xcp4-62vj-cq3r.json"

npm / @valtimo/components

Package

Name
@valtimo/components
View open source insights on deps.dev
Purl
pkg:npm/%40valtimo/components

Affected ranges

Type
SEMVER
Events
Introduced
11.2.0
Fixed
11.2.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-xcp4-62vj-cq3r/GHSA-xcp4-62vj-cq3r.json"