SCA: security update for org.openmrs.api:openmrs-api (GHSA-xj4f-8jjg-vx4q)

critical Tenable Cloud Security Plugin ID 441116

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- OpenMRS is an open source electronic medical record system platform. From 2.7.0 to before 2.7.9 and 2.8.6,
the ConceptReferenceRangeUtility.evaluateCriteria() method in OpenMRS Core evaluates database-stored
criteria strings as Apache Velocity templates without any sandbox configuration. The VelocityEngine is
initialized with only logging properties and noSecureUberspector, leaving the default UberspectImpl in
place, which allows unrestricted Java reflection through template expressions. A user with the Manage
Concepts privilege can store a malicious Velocity template expression in a concept's reference range
criteria field. This payload is then executed automatically whenever a user or API call validates an
observation against the affected concept. The Velocity context exposes $patient (the Person / Patient
object), $obs (the Obs object), and $fn (the ConceptReferenceRangeUtility instance with access to the full
OpenMRS service layer). This vulnerability is fixed in 2.7.9 and 2.8.6. (CVE-2026-41258)

Solution

Update the org.openmrs.api:openmrs-api library and its related packages to version 2.7.9 or later.

See Also

https://github.com/advisories/GHSA-xj4f-8jjg-vx4q

Plugin Details

Severity: Critical

ID: 441116

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 5/5/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.27

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 8.3

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:M/C:C/I:C/A:C

CVSS Score Source: CVE-2026-41258

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/4/2026

Vulnerability Publication Date: 5/4/2026

Reference Information

CVE: CVE-2026-41258

cwe: CWE-94