# Getting "HSTS Missing From HTTPS Server (RFC 6797)" Vulnerability for OpenSearch\_3.5.0

**URL:** <https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169>\
**Category:** OpenSearch\
**Tags:** security-issue\
**Created:** [June 29, 2026, 12:39pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169 "2026-06-29T12:39:35Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [June 29, 2026, 12:39pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/1 "2026-06-29T12:39:35Z")

</div>

**Versions :** OpenSearch: **3.5.0**

- **Describe the Issue:**  
A Nessus scan reported that the OpenSearch HTTPS endpoint is missing the `Strict-Transport-Security (HSTS)` header (RFC 6797). As a result, the server does not enforce HTTPS, which may expose it to downgrade or SSL stripping attacks.

**Configuration:**

- HTTPS enabled

- OpenSearch Security (Basic Authentication)

- HSTS header not present in HTTPS responses

**Relevant Logs or Screenshots:**  
Nessus Plugin ID: **142960** – _HSTS Missing From HTTPS Server (RFC 6797)_

Observed response:

```auto
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="OpenSearch Security"
X-OpenSearch-Version: OpenSearch/3.5.0 (opensearch)

```

Expected:

```auto
Strict-Transport-Security: max-age=31536000; includeSubDomains

```

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 1, 2026, 11:27am UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/2 "2026-07-01T11:27:42Z")

</div>

Team, any update on it??

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [July 1, 2026, 12:36pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/3 "2026-07-01T12:36:44Z")

</div>

@mohit24 thats a great find. I’d encourage you to open a GitHub issue on [opensearch-project/security](https://github.com/opensearch-project/security/issues) requesting configurable HSTS header injection. The Security plugin already adds some security response headers (e.g. `X-Frame-Options`, `X-Content-Type-Options`), HSTS would be a natural addition there, likely gated on `plugins.security.ssl.http.enabled: true`

As a workaround for now, you can add the header at the reverse proxy / load balancer layer in front of OpenSearch.

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 8, 2026, 6:02pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/4 "2026-07-08T18:02:49Z")

</div>

Hi, @Anthony , a possible solution is to place a reverse proxy or load balancer in front of OpenSearch and route all client and Nessus traffic through it instead of allowing direct access to the OpenSearch API. Simply changing the OpenSearch port from **9200** to **9201** will not resolve the issue because Nessus scans the OpenSearch API directly and will detect the same finding if the new port is accessible. Configuring `network.host: 127.0.0.1` is also not an option in our environment because we have a multi-node OpenSearch cluster.

So, is there any other way to resolve it?

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [July 10, 2026, 11:09am UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/5 "2026-07-10T11:09:39Z")

</div>

@mohit24 The reverse proxy approach actually works at the cluster level, not per-node, so it scales cleanly to multi-node setups. A single nginx/HAProxy/ALB instance sits in front of the cluster and handles all inbound traffic, the HSTS header gets injected there regardless of how many data nodes are behind it. You don’t need a proxy on each node.

That said, if you’re looking for OpenSearch-native alternatives (i.e., no proxy at all): there is currently no `opensearch.yml` or Security plugin setting to inject arbitrary HTTP response headers like `Strict-Transport-Security`. The Security plugin hardcodes a handful of security headers but HSTS is not among them.

Hope this helps

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 22, 2026, 8:48pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/6 "2026-07-22T20:48:52Z")

</div>

> [@Anthony](#):
>
> The reverse proxy approach actually works at the cluster level, not per-node, so it scales cleanly to multi-node setups. A single nginx/HAProxy/ALB instance sits in front of the cluster and handles all inbound traffic, the HSTS header gets injected there regardless of how many data nodes are behind it. You don’t need a proxy on each node.
> 
> That said, if you’re looking for OpenSearch-native alternatives (i.e., no proxy at all): there is currently no `opensearch.yml` or Security plugin setting to inject arbitrary HTTP response headers like `Strict-Transport-Security`. The Security plugin hardcodes a handful of security headers but HSTS is not among t

@Anthony We tested both single-node and multi-node OpenSearch deployments.

- **Single-node deployment:** Configuring OpenSearch to listen on **127.0.0.1:9201** and placing **NGINX** in front on **port 9200** works successfully. NGINX injects the **Strict-Transport-Security (HSTS)** header, and Nessus does **not** report the **HSTS Missing From HTTPS Server (RFC 6797)** vulnerability because all traffic is routed through NGINX.

- **Two-node OpenSearch cluster:** The same approach is **not** supported. Setting `network.host: 127.0.0.1` on the cluster nodes prevents them from communicating with each other, resulting in cluster formation failure, no cluster manager election, and the Security plugin remaining uninitialized. As a result, the cluster becomes unavailable.

The logs confirm this behavior:

```auto
[WARN] ClusterFormationFailureHelper
cluster-manager not discovered or elected yet...

have discovered:
{SEREVR..} ... {127.0.0.1}{127.0.0.1:9300}

discovery will continue using:
SERVERIP1:9300
SEREVRIP2:9300

[ERROR] OpenSearch Security not initialized. Cluster manager not present

```

Therefore, for a **multi-node OpenSearch cluster** , binding OpenSearch to **127.0.0.1** is not a viable solution. The only practical remediation is to deploy a **central reverse proxy or load balancer** in front of the cluster and ensure that **all client and Nessus traffic** is routed through it. If Nessus continues to access the OpenSearch API directly, the HSTS header cannot be injected because OpenSearch does not currently provide native support for adding the **Strict-Transport-Security (HSTS)** header.

Please let us know if there are any other possible solutions that we can evaluate.

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 28, 2026, 10:07am UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/7 "2026-07-28T10:07:14Z")

</div>

@Anthony Any update on it??

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [July 28, 2026, 11:25am UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/8 "2026-07-28T11:25:02Z")

</div>

@mohit24 The cluster will not form if the nodes are bound to 127.0.0.1. You can leave OpenSearch nodes bound to their real IPs as normal. Put a central NGINX or load balancer in front of the cluster, add the HSTS header there, and use firewall rules (e.g. iptables/security groups) to block direct external access to port 9200 on each node. Nessus should be pointed at the load balancer VIP, not the individual node IPs.

Alternatively, if for some reason you need to leave the nodes bounded to localhost, you can Instead of `network.host`, use the more granular settings (full docs [here](https://docs.opensearch.org/latest/install-and-configure/configuring-opensearch/network-settings/)):

```auto
# opensearch.yml on each node
transport.host: <this-node-real-ip> # inter-node traffic uses the real IP
http.host: 127.0.0.1 # REST API only on localhost

```

Then run NGINX on each node listening on the real IP:9200 and proxying to 127.0.0.1:9201 (or whichever port you move OpenSearch HTTP to), with the HSTS header added. Nodes communicate freely on their real IPs via port 9300, and all REST/Nessus traffic hits NGINX first.

Hope this helps

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 29, 2026, 10:39am UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/9 "2026-07-29T10:39:28Z")

</div>

hi @Anthony  
If we do not use any third-party solution such as NGINX, Apache, HAProxy, or a load balancer for this issue.

Is there any plan for OpenSearch to provide native HSTS header support in a future release? If yes, do you know which OpenSearch version may include this fix?

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [July 29, 2026, 4:31pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/10 "2026-07-29T16:31:36Z")

</div>

hello @mohit24 - the OpenSearch roadmap is here. Hope this helps

> **[OpenSearch Roadmap • opensearch-project](https://github.com/orgs/opensearch-project/projects/206)**
>
> Roadmap 2024-2025: https://opensearch.org/blog/opensearch-project-roadmap-2024-2025/

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 29, 2026, 5:33pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/11 "2026-07-29T17:33:35Z")

</div>

@Anthony @kris Thanks for sharing the roadmap. I could not find any item related to native HSTS header support.

Does this mean there is currently no planned OpenSearch release for this enhancement, and that using a reverse proxy/load balancer remains the only supported solution for now?

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [July 29, 2026, 10:41pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/12 "2026-07-29T22:41:51Z")

</div>

That may be the case but I would need to double check with the team.

Did you open this Feature Re/ Issue?

> <https://github.com/opensearch-project/security/issues/6345>
>
> Dear Team,
> in response to RFC 6797 (HSTS Missing From HTTPS Server) ,
> We would l…ike to have a native way to add restrictions in order to mitigite this potential vulnurability.
> as of now the only solution is to put proxy/http server in front of it.
> 
> Example from Nussus report:
> 
> \> HSTS Missing From HTTPS Server (RFC 6797)
> 
> \> The remote web server is not enforcing HSTS, as defined by RFC 6797.
> \> Plugin ID: 142960
> \> IP address / Hostname:
> \> 1.1.1.1 / myserver
> \> System administrator:
> \> 
> \> Port:
> \> 9200
> \> Description
> \> The remote web server is not enforcing HSTS, as defined by RFC 6797. HSTS is an optional response header that can be configured on the server to instruct the browser to only communicate via HTTPS. The lack of HSTS allows downgrade attacks, SSL-stripping man-in-the-middle attacks, and weakens cookie-hijacking protections.
> \> Output from most recent scan
> \> 
> \> WWW-Authenticate: Basic realm="OpenSearch Security"
> \> X-OpenSearch-Version: OpenSearch/3.7.0 (opensearch)
> \> content-type: text/plain; charset=UTF-8
> \> content-length: 12
> \> 
> \> The remote HTTPS server does not send the HTTP
> \> "Strict-Transport-Security" header.
> \> 
> \> Solution
> \> 
> \> Configure the remote web server to use HSTS.
> 
> opensearch-dashboards has this feature backed-in:
> server.customResponseHeaders:
> Strict-Transport-Security: "max-age=31536000; includeSubDomains"
> 
> many thanks in advance.

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [July 30, 2026, 10:12am UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/13 "2026-07-30T10:12:03Z")

</div>

@kris We have checked, but there is no update regarding this. Can you please confirm with the team and let me know?

---

<div class="post-metadata">

**Author:** ![mohit24](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mohit24](https://forum.opensearch.org/u/mohit24)\
**Post date:** [August 3, 2026, 12:13pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/14 "2026-08-03T12:13:28Z")

</div>

@kris Have to check with the team regarding this or any updates on it.

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [August 4, 2026, 7:01pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/15 "2026-08-04T19:01:44Z")

</div>

added a link back to this thread on the github issue and a note asking for the maintainers to comment

---

<div class="post-metadata">

**Author:** ![Bhupendra](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@Bhupendra](https://forum.opensearch.org/u/Bhupendra)\
**Post date:** [September 29, 2026, 3:53pm UTC](https://forum.opensearch.org/t/getting-hsts-missing-from-https-server-rfc-6797-vulnerability-for-opensearch-3-5-0/28169/16 "2026-09-29T15:53:24Z")

</div>

Looking forward to HSTS support in 2.x as well.
