{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "title": "improper validation of hostnames set by the \"allowedIframeHostnames\" option can lead to bypass hostname whitelist for iframe element",
    "tracking": {
      "current_release_date": "2026-08-14T04:39:59+00:00",
      "generator": {
        "date": "2026-08-14T04:39:59+00:00",
        "engine": {
          "name": "CSAF Generator",
          "version": "3.3.0"
        }
      },
      "id": "CVE-2021-26540",
      "initial_release_date": "2021-01-26T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2026-08-14T04:39:59+00:00",
          "number": "1",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "1"
    }
  },
  "product_tree": {
    "branches": [
      {
        "category": "vendor",
        "name": "Red Hat",
        "branches": [
          {
            "category": "product_name",
            "name": "OpenShift Container Platform 4.19",
            "product": {
              "name": "OpenShift Container Platform 4.19",
              "product_id": "openshift-4",
              "product_identification_helper": {
                "cpe": "cpe:/a:redhat:openshift:4"
              }
            }
          },
          {
            "category": "product_name",
            "name": "OpenShift Container Platform 4.8",
            "product": {
              "name": "OpenShift Container Platform 4.8",
              "product_id": "openshift-4.8::el8",
              "product_identification_helper": {
                "cpe": "cpe:/a:redhat:openshift:4.8::el8"
              }
            }
          },
          {
            "category": "product_name",
            "name": "OpenShift Container Platform 4.9",
            "product": {
              "name": "OpenShift Container Platform 4.9",
              "product_id": "openshift-4.9::el8",
              "product_identification_helper": {
                "cpe": "cpe:/a:redhat:openshift:4.9::el8"
              }
            }
          },
          {
            "category": "product_name",
            "name": "OpenShift Service Mesh OSSM 2.0.0",
            "product": {
              "name": "OpenShift Service Mesh OSSM 2.0.0",
              "product_id": "ossm-2.0",
              "product_identification_helper": {
                "cpe": "cpe:/a:redhat:service_mesh:2.0"
              }
            }
          },
          {
            "category": "product_version",
            "name": "golang-github-prometheus-prometheus-container-v4.9.0",
            "product": {
              "name": "golang-github-prometheus-prometheus-container-v4.9.0",
              "product_id": "golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/golang-github-prometheus-prometheus-container-v4.9.0@202109302016.p0.git.3197fa7.assembly.stream?epoch=0"
              }
            }
          },
          {
            "category": "product_version",
            "name": "openshift-enterprise-console-container-v4.8.0",
            "product": {
              "name": "openshift-enterprise-console-container-v4.8.0",
              "product_id": "openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/openshift-enterprise-console-container-v4.8.0@202107010336.p0.git.188a490.assembly.stream?epoch=0"
              }
            }
          },
          {
            "category": "product_version",
            "name": "openshift4/ose-prometheus",
            "product": {
              "name": "openshift4/ose-prometheus",
              "product_id": "openshift4/ose-prometheus",
              "product_identification_helper": {
                "purl": "pkg:oci/ose-prometheus?repository_url=registry.redhat.io/openshift4/ose-prometheus"
              }
            }
          },
          {
            "category": "product_version",
            "name": "openshift4/ose-thanos-rhel8",
            "product": {
              "name": "openshift4/ose-thanos-rhel8",
              "product_id": "openshift4/ose-thanos-rhel8",
              "product_identification_helper": {
                "purl": "pkg:oci/ose-thanos-rhel8?repository_url=registry.redhat.io/openshift4/ose-thanos-rhel8"
              }
            }
          },
          {
            "category": "product_version",
            "name": "ose-thanos-container-v4.8.0",
            "product": {
              "name": "ose-thanos-container-v4.8.0",
              "product_id": "ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/ose-thanos-container-v4.8.0@202106291913.p0.git.c358e96.assembly.stream?epoch=0"
              }
            }
          },
          {
            "category": "product_version",
            "name": "rhacm2/thanos-rhel9",
            "product": {
              "name": "rhacm2/thanos-rhel9",
              "product_id": "rhacm2/thanos-rhel9",
              "product_identification_helper": {
                "purl": "pkg:oci/thanos-rhel9?repository_url=registry.redhat.io/rhacm2/thanos-rhel9"
              }
            }
          },
          {
            "category": "product_version",
            "name": "servicemesh-prometheus",
            "product": {
              "name": "servicemesh-prometheus",
              "product_id": "servicemesh-prometheus",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/servicemesh-prometheus"
              }
            }
          },
          {
            "category": "product_version",
            "name": "servicemesh-prometheus",
            "product": {
              "name": "servicemesh-prometheus",
              "product_id": "servicemesh-prometheus.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/servicemesh-prometheus?arch=src"
              }
            }
          }
        ]
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream as a component of OpenShift Container Platform 4.9",
          "product_id": "openshift-4.9::el8:golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream"
        },
        "product_reference": "golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream",
        "relates_to_product_reference": "openshift-4.9::el8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream as a component of OpenShift Container Platform 4.8",
          "product_id": "openshift-4.8::el8:openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream"
        },
        "product_reference": "openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream",
        "relates_to_product_reference": "openshift-4.8::el8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "openshift4/ose-prometheus as a component of OpenShift Container Platform 4.19",
          "product_id": "openshift-4:openshift4/ose-prometheus"
        },
        "product_reference": "openshift4/ose-prometheus",
        "relates_to_product_reference": "openshift-4"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "openshift4/ose-thanos-rhel8 as a component of OpenShift Container Platform 4.19",
          "product_id": "openshift-4:openshift4/ose-thanos-rhel8"
        },
        "product_reference": "openshift4/ose-thanos-rhel8",
        "relates_to_product_reference": "openshift-4"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream as a component of OpenShift Container Platform 4.8",
          "product_id": "openshift-4.8::el8:ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream"
        },
        "product_reference": "ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream",
        "relates_to_product_reference": "openshift-4.8::el8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "rhacm2/thanos-rhel9 as a component of OpenShift Container Platform 4.19",
          "product_id": "openshift-4:rhacm2/thanos-rhel9"
        },
        "product_reference": "rhacm2/thanos-rhel9",
        "relates_to_product_reference": "openshift-4"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "servicemesh-prometheus as a component of OpenShift Service Mesh OSSM 2.0.0",
          "product_id": "ossm-2.0:servicemesh-prometheus"
        },
        "product_reference": "servicemesh-prometheus",
        "relates_to_product_reference": "ossm-2.0"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "servicemesh-prometheus.src as a component of OpenShift Service Mesh OSSM 2.0.0",
          "product_id": "ossm-2.0:servicemesh-prometheus.src"
        },
        "product_reference": "servicemesh-prometheus.src",
        "relates_to_product_reference": "ossm-2.0"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2021-26540",
      "cwe": {
        "id": "CWE-20",
        "name": "Improper Input Validation"
      },
      "discovery_date": "2021-02-08T00:00:00+00:00",
      "notes": [
        {
          "category": "description",
          "text": "Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the \"allowedIframeHostnames\" option when the \"allowIframeRelativeUrls\" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with \"/\\\\example.com\".",
          "title": "Vulnerability description"
        }
      ],
      "product_status": {
        "fixed": [
          "openshift-4.8::el8:openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream",
          "openshift-4.8::el8:ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream",
          "openshift-4.9::el8:golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream"
        ],
        "known_affected": [
          "openshift-4:openshift4/ose-prometheus",
          "openshift-4:openshift4/ose-thanos-rhel8",
          "openshift-4:rhacm2/thanos-rhel9",
          "ossm-2.0:servicemesh-prometheus",
          "ossm-2.0:servicemesh-prometheus.src"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2021-26540"
        },
        {
          "category": "external",
          "summary": "nvd.nist.gov",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-26540"
        },
        {
          "category": "external",
          "summary": "www.cve.org",
          "url": "https://www.cve.org/CVERecord?id=CVE-2021-26540"
        }
      ],
      "remediations": [
        {
          "category": "none_available",
          "details": "Affected",
          "product_ids": [
            "openshift-4:openshift4/ose-prometheus",
            "openshift-4:openshift4/ose-thanos-rhel8",
            "openshift-4:rhacm2/thanos-rhel9",
            "ossm-2.0:servicemesh-prometheus",
            "ossm-2.0:servicemesh-prometheus.src"
          ]
        },
        {
          "category": "vendor_fix",
          "date": "2021-07-27T22:30:07+00:00",
          "details": "Apply advisory RHSA-2021:2438 as per vendors instructions.",
          "product_ids": [
            "openshift-4.8::el8:openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream",
            "openshift-4.8::el8:ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2021:2438"
        },
        {
          "category": "vendor_fix",
          "date": "2021-10-18T17:26:13+00:00",
          "details": "Apply advisory RHSA-2021:3759 as per vendors instructions.",
          "product_ids": [
            "openshift-4.9::el8:golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream"
          ],
          "url": "https://access.redhat.com/errata/RHSA-2021:3759"
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM"
          },
          "products": [
            "openshift-4.8::el8:openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream",
            "openshift-4.8::el8:ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream",
            "openshift-4.9::el8:golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream",
            "openshift-4:openshift4/ose-prometheus",
            "openshift-4:openshift4/ose-thanos-rhel8",
            "openshift-4:rhacm2/thanos-rhel9",
            "ossm-2.0:servicemesh-prometheus",
            "ossm-2.0:servicemesh-prometheus.src"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "openshift-4.8::el8:openshift-enterprise-console-container-v4.8.0-0:202107010336.p0.git.188a490.assembly.stream",
            "openshift-4.8::el8:ose-thanos-container-v4.8.0-0:202106291913.p0.git.c358e96.assembly.stream",
            "openshift-4.9::el8:golang-github-prometheus-prometheus-container-v4.9.0-0:202109302016.p0.git.3197fa7.assembly.stream",
            "openshift-4:openshift4/ose-prometheus",
            "openshift-4:openshift4/ose-thanos-rhel8",
            "openshift-4:rhacm2/thanos-rhel9",
            "ossm-2.0:servicemesh-prometheus",
            "ossm-2.0:servicemesh-prometheus.src"
          ]
        }
      ],
      "title": "improper validation of hostnames set by the \"allowedIframeHostnames\" option can lead to bypass hostname whitelist for iframe element"
    }
  ]
}