Vulnerability library
Security checkJuly 10, 2026

tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmtarteaucitronjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

tarteaucitron provides a list of cookies and buttons to delete them. If an attacker can write HTML with data attributes, they could create an element that silently deletes a cookie when clicked and trick a user to delete this cookie.

Recommendation

Update the tarteaucitronjs package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.33.0
  • Patched version(s): 1.33.0

References

Could your website be exposed too?

SmartScanner can check your website for tarteaucitron: data-cookie attribute can be used to delete arbitrary cookies and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 10, 2026