← Back to CVE Explorer

CVE-2026-49977

Full vulnerability record from the local CVENow database.

Description

tarteaucitron.js is a compliant and accessible cookie banner. Prior to 1.33.0, tarteaucitron.cookie.purge() is called on any element with the purgeBtn class and does not check whether the element is a legitimate tarteaucitron button or whether the cookie corresponds to a service handled by tarteaucitron. If an attacker can write HTML with data attributes, an element with data-cookie can silently delete a non-HttpOnly cookie with a known name when clicked by a user. This issue is fixed in version 1.33.0.

Severity
MEDIUM
CVSS score
4.3 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-07-17 21:17:06.930000
Last modified
2026-10-24 20:10:00.137000
View original CVE JSON
{
  "id": "CVE-2026-49977",
  "sourceIdentifier": "[email protected]",
  "published": "2026-07-17T21:17:06.930",
  "lastModified": "2026-10-24T20:10:00.137",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "tarteaucitron.js is a compliant and accessible cookie banner. Prior to 1.33.0, tarteaucitron.cookie.purge() is called on any element with the purgeBtn class and does not check whether the element is a legitimate tarteaucitron button or whether the cookie corresponds to a service handled by tarteaucitron. If an attacker can write HTML with data attributes, an element with data-cookie can silently delete a non-HttpOnly cookie with a known name when clicked by a user. This issue is fixed in version 1.33.0."
    },
    {
      "lang": "es",
      "value": "tarteaucitron.js es un banner de cookies conforme y accesible. Antes de 1.33.0, tarteaucitron.cookie.purge() se llama en cualquier elemento con la clase purgeBtn y no verifica si el elemento es un botón legítimo de tarteaucitron o si la cookie corresponde a un servicio gestionado por tarteaucitron. Si un atacante puede escribir HTML con atributos de datos, un elemento con data-cookie puede eliminar silenciosamente una cookie no HttpOnly con un nombre conocido cuando un usuario hace clic en él. Este problema está solucionado en la versión 1.33.0."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "AmauriC",
          "product": "tarteaucitron.js",
          "versions": [
            {
              "version": "< 1.33.0",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
          "baseScore": 4.3,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 1.4
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-20T18:51:55.083424Z",
          "id": "CVE-2026-49977",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-285"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/AmauriC/tarteaucitron.js/commit/24b5464400ae2ff1ad96a092c629b9d632b9cc93",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.33.0",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-jxj7-g6gm-49j7",
      "source": "[email protected]"
    },
    {
      "url": "https://www.drupal.org/sa-contrib-2026-040",
      "source": "af854a3a-2127-422b-91ae-364da2661108"
    }
  ]
}