Odoo announces two vulnerabilities in the core server that have been exploited in on-premise installations, including by automated AI agents. If you are running Odoo self-hosted, please check your version and apply the fixes immediately.
- CVE-2026-130029 – Cross-Site Scripting (CWE-79): High, CVSS 7.1. Affects Odoo Community and Enterprise 20.0 and below. Attackers do not need to log in if the Live Chat feature is active.
- CVE-2026-130028 – SQL Injection (CWE-89): High, CVSS 8.8. Affects Odoo Community and Enterprise 16.0 and below. Attackers need a portal or internal account.
Odoo Cloud servers (Odoo Online and Odoo.sh) have been patched by Odoo as soon as the fixes became available. The ones who need to act are the owners of on-premise or self-hosted instances.
This article summarizes how both vulnerabilities work, their impact on businesses, the affected versions, and the steps your IT team needs to take. This article is not a substitute for the official advisory; always follow Odoo's instructions for the version you are using.
CVE-2026-130029: XSS via Live Chat, Forum, and email
Cross-Site Scripting (XSS) occurs when a web application displays data from an untrusted source as active content, without proper sanitization or encoding. As a result, the user's browser executes scripts inserted by the attacker.
A simple analogy: someone posts a "note" on the office bulletin board. The note looks ordinary, but anyone who reads it unknowingly executes hidden commands within it.
Odoo actually has an HTML sanitizer that cleans HTML from users before it is stored and displayed. According to the advisory, under certain conditions the sanitizer fails to clean content that is interpreted differently by the browser. The result is stored XSS: malicious scripts are stored in the database and run every time the content is opened.
The general flow of an XSS attack:
- The attacker sends specially crafted content through public conversations: Live Chat, forum questions or answers, document chatter, or incoming email channels.
- If Live Chat is active, the attacker does not need an account or login at all.
- Odoo stores this content and displays it to internal users.
- When the user opens it, the script runs in the browser with that user's session and access rights.
Never test XSS payloads on production systems. Conduct testing only in an isolated staging environment and with approval.
The impact of XSS on your business
CVSS score 7.1 (CVSS vector:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N) reflects network attacks without login, which only require the victim to open the content. The impact depends on the victim's access rights. The attacker can:
- Reading information accessible to the victim, such as customer data, prices, or reports.
- Taking any action with the victim's access rights.
- If the victim has high access rights, changing business data and configurations on a large scale, including user accounts and their access rights.
Odoo receives reports of active exploitation, including through Live Chat and activities associated with automated AI agents. The purpose and effects of these activities are not yet known.
XSS does not automatically provide shell access to the server or direct access to the PostgreSQL database. However, if an administrator account is successfully abused, the damage can still be significant.
Affected versions of Odoo and how to fix them
The fix method varies for each CVE. For XSS, simply update to the latest revision. For SQL Injection, you must install a specific version patch.
Odoo Versions (Community & Enterprise) | CVE-2026-130029 (XSS) | CVE-2026-130028 (SQL Injection) |
|---|---|---|
17.0, 18.0, 19.0, 20.0 | Affected; fixed in the latest revision | Not affected |
16.0 | Affected; fixed in the latest revision | Affected; requires a specific patch from the advisory |
13.0, 14.0, 15.0 | Affected; no fix commit, upgrade recommended | Affected; specific patch available in the advisory |
Below 13.0 | Affected; no fix commit, upgrade recommended | Affected; no patch in the advisory, upgrade recommended |
Odoo Online & Odoo.sh | Already patched by Odoo | Already patched by Odoo |
Do not assume your instance is secure just because it uses the latest major version. What matters is the revision that is actually running.
CVE-2026-130028: SQL Injection in Odoo 16.0 and below
The second vulnerability is more severe (CVSS 8.8), but it only affects Odoo 16.0 and below. Odoo 17.0, 18.0, 19.0, and 20.0 are not impacted.
The issue lies in Odoo's ORM, the layer that constructs SQL queries for business data operations. Validation of one of the request values is not strict enough, allowing users with limited access to modify the database query. The query is then executed with the database account's access rights, not the user's access rights.
- Attack requirements: a portal or internal account with read access to the affected model.
- Attack method: manipulated web RPC request.
- Impact: elevating application access rights, reading data beyond their rights, and modifying or deleting database data.
- Status: attacks have been observed in on-premise deployments, including by automated AI agents.
Note: if your portal allows self-registration, anyone can create a portal account and qualify for this attack.
Mitigation steps for Odoo on-premise
1. Inventory all instances
Record each Odoo instance you manage:
- Server name and container name.
- Odoo version and edition (Community or Enterprise).
- Image source or repository.
- Git branch and current commit/revision.
- List of custom addons.
- Hosting type: on-premise, Odoo.sh, or Odoo Online.
- Technical responsible person and patch status.
For Docker-based deployments, the list of containers and their versions can be checked with:
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'
docker exec -it <container_name> odoo --version
If the odoo command is not in the PATH, check the command or entrypoint of the image being used.
2. Backup before changes
- Backup the PostgreSQL database.
- Backup the filestore for the related database.
- Backup odoo.conf, Docker Compose, Dockerfile, and custom addons.
- Ensure the backup is readable and the restore process has been tested in a separate environment.
Treat the database and filestore as a consistent backup set.
3. Apply official fixes
For XSS (CVE-2026-130029), Odoo 16.0–20.0:
- Update to the latest revision via GitHub or the Odoo download page.
- Follow the official Odoo update instructions.
- For Docker, rebuild the image from the latest source and then recreate the container. Restarting alone is not enough.
For SQL Injection (CVE-2026-130028), Odoo 13.0–16.0:
- Obtain the specific version patch included in the official advisory. This patch modifies the file odoo/models.py.
- Apply the patch on your Odoo source, then rebuild the image and recreate the container.
- As a long-term alternative, upgrade to Odoo 17.0 or newer.
For both:
- Apply in staging first, then deploy to production after successful testing.
- Record the revision, image digest, deployment time, and verification results.
Important: For SQL Injection, Odoo emphasizes that the affected branch is not scheduled to receive public commits immediately. This means, updating to the latest public revision (git pull or docker compose pull) only does not install the fix. Odoo 16.0 users need to do both: update to the latest revision for XSS and install a specific patch for SQL Injection.
4. Verify after the patch
- Ensure the container is running normally and check the Odoo logs and reverse proxy.
- Ensure backend and portal login functions.
- Test Website, Live Chat, Discuss/Chatter, incoming emails, and other features that contain HTML content.
- Ensure custom addons do not experience regression.
- Save proof of the revised or fixed image.
Functional testing is not the only proof that the vulnerabilities have been closed. Verification must still refer to the advisory or official confirmation from Odoo.
Don't stop at the patch: check for signs of compromise
Both vulnerabilities have been exploited, so just patching is not enough. Odoo emphasizes that the XSS fix does not overwrite existing records, and the SQL Injection patch does not invalidate previous activities.
XSS Indicators (CVE-2026-130029):
- Broken image in Live Chat messages.
- mail.message record whose body field contains XSS payload.
- Review all untrusted HTML content stored before the patch: Live Chat, Forum, chatter, and incoming emails.
Odoo notes that these indicators do not cover all possibilities.
SQL Injection Indicators (CVE-2026-130028): the following patterns were reported to appear in the Odoo server logs during exploitation attempts.
ERROR: invalid input syntax for type integer psycopg2.errors.InvalidTextRepresentation pg_sleep(3) as z -- SELECT 1 AS "id", pg_sleep(3) -- 1 as z -- cast((select count(*)::text from ir_config_parameter) as integer) as z --
Matching patterns do not necessarily mean the attack was successful, and the absence of patterns does not guarantee safety. Check along with the request log and unexpected database changes.
General checks for both:
- Review unusual administrator account logins and activities.
- Review new user creation, group changes, and recent permission changes.
- Check for unknown changes to configurations, custom addons, scheduled actions, and integrations.
- Match the timing of suspicious activities with the reverse proxy access log and Odoo logs.
- If there are indications of compromise, isolate the instance according to incident response procedures and escalate to the security team.
Secure relevant logs and artifacts before deleting anything, so that evidence does not get lost.
Temporary mitigation while waiting for a patch
- XSS: if the update cannot be installed yet, Odoo mentions lxml running with libxml2 2.10.0 or newer can mitigate this issue. Verify the version of libxml2 that the application is actually loading, and check the compatibility of the OS package or its Python dependencies.
- SQL Injection: there is no complete workaround at the application level. Change portal registration to “On Invitation” mode so outsiders cannot create their own portal accounts. This step does not restrict existing accounts.
- Review and disable unnecessary portal and internal accounts.
- Limit administrator access only through approved networks or VPNs, and implement MFA.
- Limit public access to unnecessary features.
- Enhance application log monitoring and reverse proxy.
This mitigation is only a temporary hold. WAF, Nginx, Nginx Proxy Manager, BunkerWeb, or Cloudflare do not automatically close these two vulnerabilities without tested rules. Patching remains mandatory.
Summary comparison of the two CVEs
XSS affects more versions and can be exploited without login. SQL Injection has a higher score, but requires an account and is only present in older versions.
Aspect | CVE-2026-130029 (XSS) | CVE-2026-130028 (SQL Injection) |
|---|---|---|
CWE | CWE-79 | CWE-89 |
CVSS 3.1 | 7.1 (High) | 8.8 (High) |
Affected versions | 20.0 and earlier | 16.0 and earlier |
Need an account? | No, if Live Chat is active | Yes, portal or internal |
Attack vectors | Live Chat, Forum, chatter, incoming email | Web RPC request |
Executed | Script in the victim's browser | SQL query with Odoo database account privileges |
Fix | Update to the latest revision (16.0–20.0) | Version-specific patch (13.0–16.0) or upgrade to 17.0+ |
Workaround | lxml with libxml2 2.10.0+ | No complete workaround |
Checklist for Odoo administrators
- All on-premise Odoo instances have been inventoried along with their versions, editions, branches, and revisions.
- The database and filestore have been backed up and the restore has been tested.
- Both official advisories have been reviewed.
- Odoo 16.0–20.0 has been updated to the latest revision (XSS).
- Odoo 13.0–16.0 has been patched for SQL Injection, or scheduled for upgrade.
- Odoo below 16.0 has an upgrade plan (no XSS fixes).
- The fixes have been tested in staging before production.
- The revision or image digest after the patch has been recorded.
- Old HTML content and mail.message have been reviewed for XSS payload.
- The server logs have been checked against SQL Injection patterns from the advisory.
- The latest changes to users, groups, and permissions have been reviewed.
Need help securing your Odoo?
The InfinysCloud team has experience implementing and managing Odoo 17 to 20 for various industries in Indonesia. We can assist with inventorying instances, applying patches in staging and production, and checking for signs of compromise.
Contact our sales team at sales@isi.co.id for your Odoo security consultation.