Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3726

# Vulnerability in `title` function **Description**: the `title` function defined in `lib/termsupport.zsh` uses `print` to set the terminal title to a user-supplied string. In Oh My Zsh, this function is always used securely, but custom user code could use the `title` function in a way that is unsafe. **Fixed in**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Impacted areas**: - `title` function in `lib/termsupport.zsh`. - Custom user code using the `title` function.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3726
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:19 UTC · Revision 1

Source evidence

CVE-2021-3726

core-osv · Original source

Published 30 Nov 2021, 10:15 UTC

# Vulnerability in `title` function **Description**: the `title` function defined in `lib/termsupport.zsh` uses `print` to set the terminal title to a user-supplied string. In Oh My Zsh, this function is always used securely, but custom user code could use the `title` function in a way that is unsafe. **Fixed in**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Impacted areas**: - `title` function in `lib/termsupport.zsh`. - Custom user code using the `title` function.

osv:CVE-2021-3726
Complete source record
{
  "id": "df9f374b816baa1439e0ddf14ed13768f8072ea2b1b9a744e60f1fb79a85b5ae",
  "url": "https://osv.dev/vulnerability/CVE-2021-3726",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3726",
    "summary": "# Vulnerability in `title` function **Description**: the `title` function defined in `lib/termsupport.zsh` uses `print` to set the terminal title to a user-supplied string. In Oh My Zsh, this function is always used securely, but custom user code could use the `title` function in a way that is unsafe. **Fixed in**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Impacted areas**: - `title` function in `lib/termsupport.zsh`. - Custom user code using the `title` function.",
    "evidence": "osv:CVE-2021-3726",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-3726",
      "aliases": [
        "CVE-2021-3726"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ohmyzsh/ohmyzsh",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a263cdac"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "a263cdac"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3726.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:51.632830314Z",
      "provider": "osv",
      "references": [
        "https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "planetargon:oh_my_zsh",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "2021-11-11"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-3726",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384700,
  "published_at": "2021-11-30T10:15:08.883+00:00"
}