{"answers":{"affected":"2 open source packages ship an affected version, including tarteaucitronjs.","exploited":"There is no known exploitation of CVE-2026-49977 in the wild and no public exploit code.","fix":"Upgrade tarteaucitronjs to 1.33.0 or later.","what":"CVE-2026-49977 is a medium-severity vulnerability in AmauriC tarteaucitron.js, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-49977 and fix it if it is affected.\n\nWhat it is: CVE-2026-49977 is a medium-severity vulnerability in AmauriC tarteaucitron.js, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-49977 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tarteaucitronjs (npm): affected all versions; fixed in 1.33.0\n- tarteaucitronjs (npm): affected all versions; fixed in 1.33.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49977/ (Markdown: https://insights.sbomify.com/CVE-2026-49977/index.md)","id":"CVE-2026-49977","markdown":"https://insights.sbomify.com/CVE-2026-49977/index.md","name":"CVE-2026-49977","record":{"aliases":["DRUPAL-CONTRIB-2026-040","GHSA-jxj7-g6gm-49j7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript cookie banner","requires_auth":"none","summary":"An attacker can delete arbitrary non-HttpOnly cookies by injecting HTML with specific data attributes, requiring user interaction to trigger the deletion.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"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.","ecosystems":["Packagist:https://packages.drupal.org/8","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"tarteaucitron.js: data-cookie attribute can be used to delete arbitrary cookies","id":"CVE-2026-49977","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside \u003ctemplate\u003e.content","id":"CVE-2026-49978"},"packages":[{"ecosystem":"npm","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"tarteaucitronjs","purl":null,"source":"GHSA-jxj7-g6gm-49j7"},{"ecosystem":"npm","fixed":["1.33.0"],"introduced":["0"],"last_affected":[],"package":"tarteaucitronjs","purl":"pkg:npm/tarteaucitronjs","source":"GHSA-jxj7-g6gm-49j7"},{"ecosystem":"Packagist:https://packages.drupal.org/8","fixed":["6.8.0"],"introduced":["0"],"last_affected":[],"package":"drupal/tacjs","purl":"pkg:composer/drupal/tacjs?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"DRUPAL-CONTRIB-2026-040"}],"prev":{"headline":"Snipe-IT: User Account Escalation via CSV Import","id":"CVE-2026-49976"},"products":["tarteaucitron.js"],"published":"2026-07-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"MIT","name":"Drupal","prefix":"DRUPAL"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["AmauriC"]},"summary":"An attacker can delete arbitrary non-HttpOnly cookies by injecting HTML with specific data attributes, requiring user interaction to trigger the deletion.","url":"https://insights.sbomify.com/CVE-2026-49977/"}