CVE-2026-121949 (GCVE-0-2026-121949)

Vulnerability from cvelistv5 – Published: 2026-11-05 17:46 – Updated: 2026-11-05 19:59
VLAI
Title
Symfony: HtmlSanitizer Does Not URL-Sanitize srcset and imagesrcset: Media Scheme and Host Allow-List Bypass
Summary
The Symfony HtmlSanitizer component does not apply the media URL policy to the srcset and imagesrcset attributes, allowing values that point to hosts or schemes not permitted by allowMediaSchemes() or allowMediaHosts() to bypass it, so that browsers load images from disallowed hosts in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.The srcset attribute on img and source elements and the imagesrcset attribute on link elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in src is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes. For example, with allowMediaSchemes(['https']) and allowMediaHosts(['trusted.example']), <img srcset="https://evil.example/a.png 1x"> survives sanitization, and the browser fetches the selected candidate as it would fetch src. Candidates with a scheme forbidden by the configuration, such as http, are kept as well. Any application that sanitizes untrusted HTML and relies on the media schemes and hosts allowlists to restrict where images can be loaded from is affected. A single crafted value is enough to make the browser of a user viewing the sanitized content send a request to an attacker-controlled host, which can be used to track viewers or log their IP addresses. No authentication is needed if the application accepts HTML from unauthenticated users.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-05 19:59 UTC
CWE
  • CWE-184 - Incomplete list of disallowed inputs
  • CWE-1023 - Incomplete Comparison with Missing Factors
Assigner
Checkmarx CNA under the mitre root
CNA scorecard B 88/100 over 15 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
sensiolabs symfony Affected: 6.1.0 , < 6.4.50 (git)
Affected: 7.0.0 , < 7.4.23 (git)
Affected: 8.0.0 , < 8.1.11 (git)
    cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
    cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
    cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
Create a notification for this product.
Date Public
2026-11-05 17:45
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2026-121949",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-05T19:59:10.426339Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-11-05T19:59:59.269Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://packagist.org/packages/symfony/html-sanitizer",
          "defaultStatus": "unaffected",
          "modules": [
            "Symfony\\Component\\HtmlSanitizer"
          ],
          "packageName": "symfony/html-sanitizer",
          "product": "symfony",
          "repo": "https://github.com/symfony/html-sanitizer",
          "vendor": "sensiolabs",
          "versions": [
            {
              "lessThan": "6.4.50",
              "status": "affected",
              "version": "6.1.0",
              "versionType": "git"
            },
            {
              "lessThan": "7.4.23",
              "status": "affected",
              "version": "7.0.0",
              "versionType": "git"
            },
            {
              "lessThan": "8.1.11",
              "status": "affected",
              "version": "8.0.0",
              "versionType": "git"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.50",
                  "versionStartIncluding": "6.1.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4.23",
                  "versionStartIncluding": "7.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "8.1.11",
                  "versionStartIncluding": "8.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ],
          "operator": "OR"
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "Shriyansh Gupta"
        },
        {
          "lang": "en",
          "type": "reporter",
          "value": "Ilia Alshanetsky"
        },
        {
          "lang": "en",
          "type": "reporter",
          "value": "\u674e\u667a\u9065"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Nicolas Grekas"
        }
      ],
      "datePublic": "2026-11-05T17:45:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "The Symfony HtmlSanitizer component does not apply the media URL policy to the\u0026nbsp;\u003ccode\u003esrcset\u003c/code\u003e\u0026nbsp;and\u0026nbsp;\u003ccode\u003eimagesrcset\u003c/code\u003e\u0026nbsp;attributes, allowing values that point to hosts or schemes not permitted by\u0026nbsp;\u003ccode\u003eallowMediaSchemes()\u003c/code\u003e\u0026nbsp;or\u0026nbsp;\u003ccode\u003eallowMediaHosts()\u003c/code\u003e\u0026nbsp;to bypass it, so that browsers load images from disallowed hosts in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.\u003cdiv\u003eThe\u0026nbsp;\u003ccode\u003esrcset\u003c/code\u003e\u0026nbsp;attribute on\u0026nbsp;\u003ccode\u003eimg\u003c/code\u003e\u0026nbsp;and\u0026nbsp;\u003ccode\u003esource\u003c/code\u003e\u0026nbsp;elements and the\u0026nbsp;\u003ccode\u003eimagesrcset\u003c/code\u003e\u0026nbsp;attribute on\u0026nbsp;\u003ccode\u003elink\u003c/code\u003e\u0026nbsp;elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in\u0026nbsp;\u003ccode\u003esrc\u003c/code\u003e\u0026nbsp;is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes. For example, with\u0026nbsp;\u003ccode\u003eallowMediaSchemes([\u0027https\u0027])\u003c/code\u003e and \u003ccode\u003eallowMediaHosts([\u0027trusted.example\u0027])\u003c/code\u003e, \u003ccode\u003e\u0026lt;img srcset=\"https://evil.example/a.png 1x\"\u0026gt;\u003c/code\u003e survives sanitization, and the browser fetches the selected candidate as it would fetch \u003ccode\u003esrc\u003c/code\u003e. Candidates with a scheme forbidden by the configuration, such as \u003ccode\u003ehttp\u003c/code\u003e, are kept as well.\u003cbr\u003eAny application that sanitizes untrusted HTML and relies on the media schemes and hosts allowlists to restrict where images can be loaded from is affected. A single crafted value is enough to make the browser of a user viewing the sanitized content send a request to an attacker-controlled host, which can be used to track viewers or log their IP addresses.\u0026nbsp;No authentication is needed if the application accepts HTML from unauthenticated users.\u003c/div\u003e"
            }
          ],
          "value": "The Symfony HtmlSanitizer component does not apply the media URL policy to the\u00a0srcset\u00a0and\u00a0imagesrcset\u00a0attributes, allowing values that point to hosts or schemes not permitted by\u00a0allowMediaSchemes()\u00a0or\u00a0allowMediaHosts()\u00a0to bypass it, so that browsers load images from disallowed hosts in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.The\u00a0srcset\u00a0attribute on\u00a0img\u00a0and\u00a0source\u00a0elements and the\u00a0imagesrcset\u00a0attribute on\u00a0link\u00a0elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in\u00a0src\u00a0is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes. For example, with\u00a0allowMediaSchemes([\u0027https\u0027]) and allowMediaHosts([\u0027trusted.example\u0027]), \u003cimg srcset=\"https://evil.example/a.png 1x\"\u003e survives sanitization, and the browser fetches the selected candidate as it would fetch src. Candidates with a scheme forbidden by the configuration, such as http, are kept as well.\nAny application that sanitizes untrusted HTML and relies on the media schemes and hosts allowlists to restrict where images can be loaded from is affected. A single crafted value is enough to make the browser of a user viewing the sanitized content send a request to an attacker-controlled host, which can be used to track viewers or log their IP addresses.\u00a0No authentication is needed if the application accepts HTML from unauthenticated users."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 2.3,
            "baseSeverity": "LOW",
            "exploitMaturity": "NOT_DEFINED",
            "privilegesRequired": "NONE",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "LOW",
            "subIntegrityImpact": "LOW",
            "userInteraction": "PASSIVE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-184",
              "description": "CWE-184 Incomplete list of disallowed inputs",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-1023",
              "description": "CWE-1023 Incomplete Comparison with Missing Factors",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-05T17:46:04.672Z",
        "orgId": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
        "shortName": "Checkmarx"
      },
      "references": [
        {
          "tags": [
            "third-party-advisory"
          ],
          "url": "https://github.com/symfony/symfony/security/advisories/GHSA-q8jq-xrf4-v5j8"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/symfony/symfony/commit/50e7a38a8f088601c09669b9d267c9c0228884e1"
        }
      ],
      "source": {
        "advisory": "GHSA-q8jq-xrf4-v5j8",
        "discovery": "UNKNOWN"
      },
      "title": "Symfony: HtmlSanitizer Does Not URL-Sanitize srcset and imagesrcset: Media Scheme and Host Allow-List Bypass",
      "x_generator": {
        "engine": "Vulnogram 1.0.5"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
    "assignerShortName": "Checkmarx",
    "cveId": "CVE-2026-121949",
    "datePublished": "2026-11-05T17:46:04.672Z",
    "dateReserved": "2026-11-04T12:43:13.943Z",
    "dateUpdated": "2026-11-05T19:59:59.269Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://packagist.org/packages/symfony/html-sanitizer",
                "defaultStatus": "unaffected",
                "modules": [
                  "Symfony\\Component\\HtmlSanitizer"
                ],
                "packageName": "symfony/html-sanitizer",
                "product": "symfony",
                "repo": "https://github.com/symfony/html-sanitizer",
                "vendor": "sensiolabs",
                "versions": [
                  {
                    "lessThan": "6.4.50",
                    "status": "affected",
                    "version": "6.1.0",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7.4.23",
                    "status": "affected",
                    "version": "7.0.0",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "8.1.11",
                    "status": "affected",
                    "version": "8.0.0",
                    "versionType": "git"
                  }
                ]
              }
            ],
            "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "The Symfony HtmlSanitizer component does not apply the media URL policy to the\u00a0srcset\u00a0and\u00a0imagesrcset\u00a0attributes, allowing values that point to hosts or schemes not permitted by\u00a0allowMediaSchemes()\u00a0or\u00a0allowMediaHosts()\u00a0to bypass it, so that browsers load images from disallowed hosts in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.The\u00a0srcset\u00a0attribute on\u00a0img\u00a0and\u00a0source\u00a0elements and the\u00a0imagesrcset\u00a0attribute on\u00a0link\u00a0elements are allowed by the sanitizer, but their URL candidates are never validated, so their values are kept verbatim while the same URL in\u00a0src\u00a0is dropped. The fixes for CVE-2026-45753 and CVE-2026-48761 extended the same attribute list but did not cover these two attributes. For example, with\u00a0allowMediaSchemes([\u0027https\u0027]) and allowMediaHosts([\u0027trusted.example\u0027]), \u003cimg srcset=\"https://evil.example/a.png 1x\"\u003e survives sanitization, and the browser fetches the selected candidate as it would fetch src. Candidates with a scheme forbidden by the configuration, such as http, are kept as well.\nAny application that sanitizes untrusted HTML and relies on the media schemes and hosts allowlists to restrict where images can be loaded from is affected. A single crafted value is enough to make the browser of a user viewing the sanitized content send a request to an attacker-controlled host, which can be used to track viewers or log their IP addresses.\u00a0No authentication is needed if the application accepts HTML from unauthenticated users."
          }
        ],
        "id": "CVE-2026-121949",
        "lastModified": "2026-11-05T20:17:48.910",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.4,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
                "version": "3.1"
              },
              "exploitabilityScore": 2.8,
              "impactScore": 2.5,
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "type": "Secondary"
            }
          ],
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 2.3,
                "baseSeverity": "LOW",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "PASSIVE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-121949",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-05T19:59:10.426339Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-11-05T18:17:07.480",
        "references": [
          {
            "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
            "url": "https://github.com/symfony/symfony/commit/50e7a38a8f088601c09669b9d267c9c0228884e1"
          },
          {
            "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
            "url": "https://github.com/symfony/symfony/security/advisories/GHSA-q8jq-xrf4-v5j8"
          }
        ],
        "sourceIdentifier": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-184"
              },
              {
                "lang": "en",
                "value": "CWE-1023"
              }
            ],
            "source": "596c5446-0ce5-4ba2-aa66-48b3b757a647",
            "type": "Secondary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.