Allerta CVE Cybersecurity

Apache Unomi CVE-2026-126628: Unauthenticated GraphQL WebSocket

Apache Unomi CVE-2026-126628: Unauthenticated GraphQL WebSocket

CVE Alert: CVE-2026-126628 Apache Unomi Unauthenticated GraphQL WebSocket

This vulnerability allows an unprivileged remote attacker to access functions that should be protected. The vulnerability affects Apache Unomi versions from 2.0.0 up to, but not including, 3.1.0, and from 4.0.0-rc1 up to, but not including, stable 4.0.0. It only applies if GraphQL has been explicitly enabled, as it is disabled by default. It is crucial to upgrade to Unomi 3.1.0 or 4.0.0 to resolve the issue.

Apache Unomi CVE-2026-126628 in 60 seconds

# 1. Check the installed Apache Unomi version
#   (The exact command may vary depending on installation and distribution)
#   Look in Karaf's startup log or the project's pom.xml if you compiled from source
#   Example to find the version in a JAR manifest within Karaf:
find /path/to/karaf/deploy -name "*unomi*.jar" -exec unzip -p {} META-INF/MANIFEST.MF \; 2>/dev/null | grep "Implementation-Version"

# 2. Check if GraphQL is enabled
#   Look for the 'cdp-graphql-feature' in configuration files or Karaf logs
#   Example to check active features in Karaf (if you have console access):
feature:list | grep cdp-graphql-feature

# 3. Upgrade Apache Unomi to version 3.1.0 or 4.0.0
#   (Consult the official Apache Unomi documentation for the specific upgrade procedure)
#   Generic example (do not execute without consulting docs):
# ... specific migration procedure ...

# 4. Verify that the GraphQL endpoint is protected after the upgrade
#   Attempt a WebSocket connection without credentials. It should fail.
#   An expected output for a non-vulnerable server (after upgrade) would be an authentication error.

Modern IT infrastructure is a complex ecosystem, and every component, even if secondary, can represent a critical entry point. Apache Unomi is at the center of a recent security alert: CVE-2026-126628. This vulnerability, with a critical impact rating (CVSS 9.3), highlights how an seemingly innocuous function can compromise data integrity and confidentiality. This article will provide an operational guide for sysadmins and security teams to identify exposure, apply fixes, and verify the security of Apache Unomi installations.

Reference versions: Apache Unomi 3.1.0, 4.0.0 · documentation consulted in November 2026

Prerequisites

Before proceeding with verification and potential mitigation, ensure you have:

  • Access to the Apache Unomi installation: System credentials to access the server where Unomi is installed (e.g., SSH).
  • Knowledge of Unomi’s configuration: Familiarity with Apache Karaf configuration files (if Unomi runs on Karaf) and enabled features.
  • Network tools: Utilities like curl, wscat, or websocat installed to test WebSocket connections.
  • Backup: A recent and verified backup of the Unomi installation and the underlying database (Elasticsearch/OpenSearch) before any upgrade operation. Read also: Backup 3-2-1-1-0: Rule Explained with Real Example

1. Understanding the Vulnerability: Missing Authentication in GraphQL WebSocket

CVE-2026-126628 is a “Missing Authentication for Critical Function” vulnerability affecting Apache Unomi. Essentially, if the GraphQL API is enabled, the process of upgrading from an HTTP connection to a WebSocket for GraphQL subscriptions can occur without the client being authenticated. This creates a persistent, unprotected channel through which an attacker can send GraphQL messages and access data or functionalities that should be restricted.

Apache Unomi is a Customer Data Platform (CDP) that collects and manages user profile data. Unauthenticated access via GraphQL WebSocket could allow an attacker to:

  • Read sensitive data: Access user profiles, market segments, context data, or other personal data managed by Unomi.
  • Manipulate data: Send GraphQL mutations to modify profiles, rules, or segments, compromising the consistency and integrity of information.
  • Monitor real-time events: Subscribe to event streams to observe user or system activity in real time, bypassing access controls.

2. Are You Exposed? Checking Version and GraphQL Configuration

The CVE-2026-126628 vulnerability affects Apache Unomi in the following versions:

  • From 2.0.0 up to, but not including, 3.1.0
  • From 4.0.0-rc1 (release candidate) up to, but not including, stable 4.0.0

It is crucial to emphasize that the vulnerability manifests only if the GraphQL functionality has been explicitly enabled. In standard distributions, GraphQL is disabled by default.

To check your exposure, follow these steps:

2.1. Identify the Installed Apache Unomi Version

The Unomi version can be found in several ways, depending on how it was installed and configured. If Unomi is running within Apache Karaf, you can look for the version in the distributed JAR files or startup logs.

# Search for the version in the manifest of a Unomi JAR within Karaf's 'deploy' directory
# This command extracts 'Implementation-Version' information from MANIFEST.MF files
find /path/to/karaf/deploy -name "*unomi*.jar" -exec unzip -p {} META-INF/MANIFEST.MF \; 2>/dev/null | grep "Implementation-Version"

# A typical output:
# Implementation-Version: 3.0.0
# Implementation-Version: 4.0.0-rc1

Also, check Unomi’s startup logs (often in data/log/karaf.log or similar) to find the line indicating the version of the Unomi bundle loaded. If you compiled Unomi from source, you can check the project’s main pom.xml file.

2.2. Check if GraphQL is Enabled

GraphQL functionality in Unomi is not active by default. To check if GraphQL is enabled, you can:

  1. Examine Karaf configuration files: Look for files like etc/org.apache.unomi.graphql.cfg or similar, which might indicate GraphQL activation.
  2. Verify active features in Karaf: If you have access to the Karaf console, you can list installed features:
    # Connect to the Karaf console (often on port 8101 with user karaf/karaf)
    ssh -p 8101 karaf@localhost

    # Once connected, execute:
    feature:list | grep cdp-graphql-feature

If the grep command returns an output, it means the GraphQL feature is active.

  1. Verify endpoint exposure: Try to access the GraphQL endpoint. A simple curl might not be sufficient for a WebSocket, but you can look for the presence of the /graphql endpoint directly or through a reverse proxy.
    # Example to test the endpoint with curl (may return a 400/404 error if not an HTTP POST)
    curl -vvv http://<UNOMI_HOST_PLACEHOLDER>:<UNOMI_PORT_PLACEHOLDER>/graphql

If your Unomi version falls within the vulnerable ranges and GraphQL is enabled, your installation is at risk and requires immediate action.

3. Correct Versions and Upgrade

The Apache Unomi versions that resolve the CVE-2026-126628 vulnerability are:

  • 3.1.0 (and later)
  • 4.0.0 (and later)

Both versions introduce a correct authentication model for GraphQL subscriptions over WebSocket, requiring valid credentials before establishing the connection. Unomi 4.x documentation clarifies that Basic credentials must be provided in the Authorization header during the WebSocket upgrade request or in the connection_init payload for browser clients.

Version Summary Table

Distribution/Branch Vulnerable Version Correct Version Status as of November 30, 2026
Apache Unomi 2.0.0 – < 3.1.0 3.1.0 Fixed
Apache Unomi 4.0.0-rc1 – < 4.0.0 4.0.0 Fixed
Ubuntu Not published N/A Not published

Recommendation: Upgrade your Apache Unomi installation to the latest stable version available (currently 4.0.0) or, if compatibility is an issue, to version 3.1.0.

The upgrade process may vary depending on your installation. Always consult the official Apache Unomi documentation for detailed instructions. Read also: Ubuntu Server Upgrade: do-release-upgrade and Best Practices

4. Mitigation if You Cannot Upgrade Immediately

If an immediate upgrade is not possible, you can implement the following mitigation measures to reduce exposure to CVE-2026-126628:

  1. Disable GraphQL functionality: If GraphQL is not essential for your application’s operation, disable it. This is the most effective approach. You can do this by removing the cdp-graphql-feature from Karaf or by deleting the specific GraphQL distribution.
  2. Restrict network access to the GraphQL endpoint: If Unomi is exposed via a reverse proxy (e.g., NGINX, Apache HTTPD) or a Web Application Firewall (WAF), configure rules to block access to the /graphql endpoint from unauthorized IP addresses or to require specific headers.

NGINX example to block unauthenticated WebSocket upgrades (partial):

    location /graphql {
        # Block WebSocket upgrade requests without an Authorization header
        if ($http_upgrade = "websocket") {
            if ($http_authorization = "") {
                return 403; # Forbidden
            }
        }
        proxy_pass http://localhost:8181/graphql;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        # Add other security or authentication rules here if necessary
    }

This configuration is just an example and may not be sufficient. It is crucial that the reverse proxy or WAF is configured to enforce authentication even for the WebSocket handshake. Read also: SSH Hardening Linux: Complete Guide 2026 (10 Critical Settings)

  1. Network segmentation: Ensure that the Unomi instance is not directly exposed to the internet and that access to the GraphQL endpoint is limited to the internal network or specific subnets. The use of VLANs and perimeter firewalls is crucial.

These mitigations are temporary and do not replace upgrading. Plan the upgrade as soon as possible.

5. How to Verify the Fix is Active

After upgrading Apache Unomi or applying mitigations, it is essential to verify that the vulnerability is no longer exploitable. You can do this by attempting to establish a GraphQL WebSocket connection without providing any credentials.

Use a tool like wscat or websocat to attempt an unauthenticated connection to the GraphQL endpoint.

# Attempt an unauthenticated WebSocket connection to the GraphQL endpoint
# Replace <UNOMI_HOST_PLACEHOLDER> and <UNOMI_PORT_PLACEHOLDER> with the correct values for your installation.
# The --no-check-certificate option is for test environments with self-signed certificates; remove it in production.
wscat -c ws://<UNOMI_HOST_PLACEHOLDER>:<UNOMI_PORT_PLACEHOLDER>/graphql --no-check-certificate

# If the fix is active, the expected output will be an authentication error or a connection close.
# For example, you might see messages like 'Authentication required' or 'Connection closed by server'.
# An example of non-vulnerable output might be:
# error: WebSocket connection to 'ws://localhost:8181/graphql' failed: HTTP authentication failed

If the connection is established and you can send GraphQL messages without authentication, the fix has not been applied correctly, or the mitigation is ineffective. In this case, review the upgrade steps or mitigation configuration.

Common Errors and Troubleshooting

Exact Error or Message Cause Solution
400 Bad Request or 404 Not Found for /graphql GraphQL is not enabled or the endpoint is configured on a different path. Check Karaf configuration and startup logs for cdp-graphql-feature. Ensure the URL is correct (e.g., /graphql, /api/graphql).
Connection refused Unomi is not listening on the specified port or address, or a firewall blocks the connection. Check Unomi service status, listening ports (netstat -tulnp), and firewall rules (ufw status, firewalld --list-all).
WebSocket connection failed: HTTP authentication failed This is the desired output after the fix. It indicates that the server requires authentication. The upgrade or mitigation is effective. You can proceed with authentication for legitimate use.
WebSocket connection established without authentication The vulnerability is still present, or the mitigation is ineffective. Review Unomi version, GraphQL configuration, and reverse proxy/WAF rules. Ensure the upgrade is complete.

Frequently Asked Questions

Does the vulnerability also affect Unomi’s REST APIs?

No, CVE-2026-126628 specifically concerns the WebSocket channel used for GraphQL subscriptions. Unomi’s REST APIs follow an established authentication model that is not directly affected by this flaw. However, it’s always good practice to review the overall security of all exposed APIs.

Can I disable only GraphQL subscriptions and keep queries/mutations?

The vulnerability is tied to the WebSocket upgrade process that enables subscriptions. Completely disabling GraphQL functionality is the most secure mitigation. If GraphQL is essential, upgrading to the patched versions (3.1.0 or 4.0.0) is the only recommended solution to keep subscriptions active securely.

Is Unomi the only Apache product with GraphQL vulnerabilities?

Vulnerabilities are common in many software products. Each CVE is specific to a product and feature. This CVE is specific to Apache Unomi and its GraphQL module. It is crucial to monitor CVEs for all components of your technology stack.

What is the difference between Unomi 3.1.0 and 4.0.0 for this CVE?

Both versions resolve CVE-2026-126628. The choice depends on compatibility requirements and your environment’s development roadmap. If you don’t need the new features of Unomi 4, version 3.1.0 is sufficient for the patch.

Do I need to restart the service after applying the patch or changing the configuration?

Yes, after upgrading Unomi packages or modifying Karaf configuration files (such as disabling a feature), it is almost always necessary to restart the Apache Unomi service to apply the changes. Consult Unomi documentation or Karaf instructions for the correct restart procedure.

Conclusions with Operational Takeaways

CVE-2026-126628 in Apache Unomi represents a significant risk for installations that expose GraphQL APIs via WebSocket without adequate authentication. Its critical classification (CVSS 9.3) and “Missing Authentication” nature make it an absolute priority for security teams and system administrators. The operational takeaways are clear:

  1. Immediate verification: Identify the Apache Unomi version in use and check if GraphQL functionality is enabled. Use tools like find and grep to analyze Karaf configuration files and logs.
  2. Priority upgrade: If your installation is vulnerable, proceed with upgrading to Unomi 3.1.0 or 4.0.0. These versions introduce the necessary authentication controls for GraphQL subscriptions via WebSocket.
  3. Temporary mitigation: If an upgrade is not feasible in the short term, disable the GraphQL endpoint or implement strict blocking rules on your reverse proxy/WAF to prevent unauthenticated WebSocket connections to the /graphql endpoint.
  4. Post-intervention verification: After applying the patch or mitigation, actively test the GraphQL WebSocket endpoint with wscat or websocat to confirm that unauthenticated connections are now rejected. This step is crucial to ensure the fix is effective.

Perimeter security is no longer sufficient. It is essential to adopt a “defense in depth” security approach that includes continuous verification of application components and timely application of patches. Managing specific CVEs for each application is an ongoing task that requires attention and proactivity, especially for systems handling sensitive data like Customer Data Platforms.

Sources

Updated: November 2026

Share this article:

Written by

Rosario Giordano

Rosario Giordano is a system administrator and IT consultant specializing in cybersecurity and cloud, with over 20 years of experience managing enterprise Linux infrastructures. His areas of expertise include SSH hardening, Kubernetes platforms, PostgreSQL databases, VMware/ Proxmox virtualization, and compliance with NIS2 and ISO 27001 security frameworks