# DHIS2 Security Hotfix Releases: 43.2.1, 42.7.1, and 41.10.1 (also v40-EOS and v39-EOS)

**URL:** <https://community.dhis2.org/t/dhis2-security-hotfix-releases-43-2-1-42-7-1-and-41-10-1-also-v40-eos-and-v39-eos/77771>\
**Category:** Announcements - Annonces\
**Tags:** hot-fixes, dhis2-security\
**Created:** [28 October 2026 14:01 UTC](https://community.dhis2.org/t/dhis2-security-hotfix-releases-43-2-1-42-7-1-and-41-10-1-also-v40-eos-and-v39-eos/77771 "2026-10-28T14:01:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![phil](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/phil/32/26881_2.png) [@phil](https://community.dhis2.org/u/phil)\
**Post date:** [29 October 2026 11:00 UTC](https://community.dhis2.org/t/dhis2-security-hotfix-releases-43-2-1-42-7-1-and-41-10-1-also-v40-eos-and-v39-eos/77771/3 "2026-10-29T11:00:35Z")

</div>

And for the EOS releases, please note the following installation guidance from the DHIS2 Core Development Team:

# DHIS2 2.40 and 2.39 End-of-Support security builds: installation guide

**October 2026**

DHIS2 2.40 and 2.39 are no longer supported, but many instances still run them. To protect those instances, we have published **End-of-Support (EOS) builds** that contain the security fixes from this release. Install them as soon as you can, and plan an upgrade to a supported version (2.41 or later).

## 1. Downloads

| | 2.40 | 2.39 |
| --- | --- | --- |
| WAR | `https://releases.dhis2.org/2.40/dhis2-stable-2.40-eos.war` | `https://releases.dhis2.org/2.39/dhis2-stable-2.39-eos.war` |
| Docker | `dhis2/core:2.40-eos` | `dhis2/core:2.39-eos` |
| You must be on | **2.40.12** | **2.39.10.1** , or the June 2026 2.39 EOS build |
| Java / Tomcat | Java 11, Tomcat 9 | Java 11, Tomcat 9 |

## 2. Check that you have the right build

EOS builds show a SNAPSHOT version (`2.40.13-SNAPSHOT`, `2.39.11-SNAPSHOT`), and the June and October 2.39 builds show the **same** version. Check the **revision** instead, under _About DHIS2_ or at `/api/system/info`:

| | Revision of the October build |
| --- | --- |
| 2.40 | `0fbab6a` |
| 2.39 | `967fd16` |

The download links and Docker tags are reused for later EOS builds. Keep the checksum of the WAR you installed, or deploy the Docker image by digest.

## 3. Before you install

1. **Back up the database and the filestore.**
2. **Stop all DHIS2 application nodes.** Do not run the old and new builds against the same database at the same time.
3. Test on a copy of production first if you can.

### 2.40 only: plan a maintenance window

On first start, 2.40 runs one database migration. It adds an index to the tracker event table and **blocks writes to that table while it runs**. On small databases this takes seconds; on large tracker databases it can take much longer.

- Pause tracker data entry, Android sync, imports and integrations before you start.
- Make sure the database has free disk space for one more index on the event table.
- Wait until DHIS2 has finished starting before you reopen access.

2.39 has no database migration.

## 4. Two features are now off by default

| Feature | Setting in `dhis.conf` |
| --- | --- |
| JasperReports report designs | `jasper.reports.enabled` |
| Analytics table hooks | `analytics.table_hooks.enabled` |

After the upgrade, reports that use a Jasper design are not shown, and stored analytics table hooks are skipped. HTML reports are not affected.

**If you use either feature** , first review what is stored and delete any Jasper report or analytics table hook you do not recognise, especially ones created or changed by non-administrators. Then set the setting to `on` and restart. Once enabled, only superusers can create or change Jasper designs and analytics table hooks.

## 5. API changes that can affect integrations

Most installations need no changes. Check your scripts and integrations for the following.

**Both 2.40 and 2.39:**

| Change | What to do |
| --- | --- |
| Legacy JSON `PATCH` (not JSON Patch) of reports, analytics table hooks and user roles is refused with **409**. On users, a legacy `PATCH` that changes roles, user groups or organisation units is refused too. | Use `PUT`, or JSON Patch (`Content-Type: application/json-patch+json`). |
| `/api/audits/dataValue` returns **only the data the user is allowed to read** , and no longer includes totals unless you add `totalPages=true`. Very large or very deep reads by non-superusers are refused, and reads are stopped after 30 seconds (`changelog.aggregate.query.timeout` in `dhis.conf`). | Add `totalPages=true` where you need totals; page through large results. |
| A user who is not allowed to read a file now gets **401** when downloading it. (Supported versions return 403.) | Nothing, unless a script relied on downloading other users’ files. |

**2.39 only, if you are coming from 2.39.10.1** (not from the June EOS build):

| Change | What to do |
| --- | --- |
| API tokens are accepted **only in the `Authorization` header** , not as a URL or form parameter. | Send `Authorization: ApiToken <token>`. |
| Metadata import no longer accepts the parameters that override the importing user (`userOverrideMode`, `overrideUser`). | Remove them from import scripts. |

## 6. If you need to roll back

Rolling back removes the security fixes again. Only do it as a temporary measure.

**2.39:** return to your previous build. No database changes are needed.

**2.40:** 2.40.12 will **not start** on a database that the EOS build has already upgraded. The log shows `Detected applied migration not resolved locally: 2.40.35`. To roll back:

1. Stop all DHIS2 application nodes.
2. Run this in the DHIS2 database (it must report `DELETE 1`):

```sql
DELETE FROM flyway_schema_history
WHERE version = '2.40.35'
  AND script = '2.40/V2_40_35__add_composite_index_psi_ou_occurreddate.sql'
  AND checksum = 904049852;

```

3. Start 2.40.12. Do **not** remove the new index; 2.40.12 works with it.

Restoring your pre-upgrade backup works too.

## 7. What EOS means for you

- EOS builds receive **selected security fixes only** : no bug fixes, no new features, no regular updates.
- They were built and tested on our automated pipeline, but did **not** go through the full QA cycle of a supported release.
- Supported versions (2.41 and later) include security improvements that cannot be added to 2.40 and 2.39. **An EOS build closes the vulnerabilities in this release, but it is not as well protected as a supported version.** Plan your upgrade.

## 8. Help

- Cannot upgrade soon? Contact **[security@dhis2.org](mailto:security@dhis2.org)** for interim mitigations.
- Problems with an EOS build: post on the community forum and include the version line (2.40 or 2.39) and the **revision** shown in _About DHIS2_.
- Report security issues to **[security@dhis2.org](mailto:security@dhis2.org)**.

---

_[View the full topic](https://community.dhis2.org/t/dhis2-security-hotfix-releases-43-2-1-42-7-1-and-41-10-1-also-v40-eos-and-v39-eos/77771)._
