Skip to content
Heist/ feed
Back to feed
Medium

Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML

Type: advisorySources: OSV

Spring Web Flow's JavaScript RemotingHandler renders the body of an error response as HTML even when the response is not "text/html", which can result in a scripting attack in the user's browser if the error response from the server contains error details with input reflected from an attacker. Affected versions: Spring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-40986
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:32 UTC · Revision 1

Source evidence

Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML

core-osv · Original source

Published 11 Jun 2026, 05:03 UTC

Spring Web Flow's JavaScript RemotingHandler renders the body of an error response as HTML even when the response is not "text/html", which can result in a scripting attack in the user's browser if the error response from the server contains error details with input reflected from an attacker. Affected versions: Spring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.

osv:CVE-2026-40986
Complete source record
{
  "id": "75a83335bbf6b4c751eca01cb856faf8e82a765f4498760ae48b53155d9b8e37",
  "url": "https://osv.dev/vulnerability/CVE-2026-40986",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML",
    "summary": "Spring Web Flow's JavaScript RemotingHandler renders the body of an error response as HTML even when the response is not \"text/html\", which can result in a scripting attack in the user's browser if the error response from the server contains error details with input reflected from an attacker. Affected versions: Spring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.",
    "evidence": "osv:CVE-2026-40986",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-40986",
      "aliases": [
        "CVE-2026-40986",
        "GHSA-hw5c-xm3c-v96w"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-webflow",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c0b9d2b4a402a8be04f6a89e16955c8ab075ddd1"
                },
                {
                  "last_affected": "c0b9d2b4a402a8be04f6a89e16955c8ab075ddd1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:broadcom:spring_web_flow:4.0.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0",
            "v4.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40986.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.137561777Z",
      "provider": "osv",
      "references": [
        "https://spring.io/security/cve-2026-40986",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40986.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40986"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "vmware",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "fixed": "4.0.0.1"
                  },
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "fixed": "3.0.1.1"
                  },
                  {
                    "introduced": "2.5.0"
                  },
                  {
                    "fixed": "2.5.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40986.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-40986",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509094,
  "published_at": "2026-06-11T05:03:26.458+00:00"
}