Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-26541

The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.

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

Source evidence

CVE-2021-26541

core-osv · Original source

Published 8 Feb 2021, 17:15 UTC

The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.

osv:CVE-2021-26541
Complete source record
{
  "id": "9d1983f674f0a5214ab6d31fc6ae9586af65573e7d68e08d86b1edff383c6405",
  "url": "https://osv.dev/vulnerability/CVE-2021-26541",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-26541",
    "summary": "The gitlog function in src/index.ts in gitlog before 4.0.4 has a command injection vulnerability.",
    "evidence": "osv:CVE-2021-26541",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-26541",
      "aliases": [
        "CVE-2021-26541",
        "GHSA-67mm-m3wx-j7fr"
      ],
      "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/domharrington/node-gitlog",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9c12a31fb07aae2b9e1c55ef58dbdbb6a58b3221"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitlog_project:gitlog:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.0.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.0.3",
            "v4.0.2",
            "v4.0.1",
            "v4.0.0",
            "v3.3.6",
            "v3.3.5",
            "v3.3.4",
            "v3.3.3",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.2.0",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.4.0",
            "v2.3.0",
            "v2.2.0",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v1.0.0",
            "v0.1.1",
            "v0.1.0",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-26541.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:34.674289125Z",
      "provider": "osv",
      "references": [
        "https://www.npmjs.com/package/gitlog",
        "https://github.com/domharrington/node-gitlog/pull/65",
        "https://advisory.checkmarx.net/advisory/CX-2020-4301"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-26541",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385632,
  "published_at": "2021-02-08T17:15:13.8+00:00"
}