Skip to content
Heist/ feed
Back to feed
Medium

Exposure of Sensitive Information to an Unauthorized Actor in semantic-release

Type: advisorySources: OSV

semantic-release is an open source npm package for automated version management and package publishing. In affected versions secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by `encodeURI`. Occurrence is further limited to execution contexts where push access to the related repository is not available without modifying the repository url to inject credentials. Users are advised to upgrade. Users unable to upgrade should ensure that secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-31051
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 19:16 UTC · Revision 1

Source evidence

Exposure of Sensitive Information to an Unauthorized Actor in semantic-release

core-osv · Original source

Published 9 Jun 2022, 20:05 UTC

semantic-release is an open source npm package for automated version management and package publishing. In affected versions secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by `encodeURI`. Occurrence is further limited to execution contexts where push access to the related repository is not available without modifying the repository url to inject credentials. Users are advised to upgrade. Users unable to upgrade should ensure that secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.

osv:CVE-2022-31051
Complete source record
{
  "id": "ad3f53ea395af4d7833b00744f0e52e4e35b39539d21178a658660b7b2f6a384",
  "url": "https://osv.dev/vulnerability/CVE-2022-31051",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Exposure of Sensitive Information to an Unauthorized Actor in semantic-release",
    "summary": "semantic-release is an open source npm package for automated version management and package publishing. In affected versions secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by `encodeURI`. Occurrence is further limited to execution contexts where push access to the related repository is not available without modifying the repository url to inject credentials. Users are advised to upgrade. Users unable to upgrade should ensure that secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.",
    "evidence": "osv:CVE-2022-31051",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-31051",
      "aliases": [
        "CVE-2022-31051",
        "GHSA-x2pg-mjhr-2m5x"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/semantic-release/semantic-release",
              "type": "GIT",
              "events": [
                {
                  "introduced": "55be0ba2b1d8a5f7d817f0d4567be04170580028"
                },
                {
                  "fixed": "58a226f29c04ee56bbb02cc661f020d568849cad"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "17.0.4"
                      },
                      {
                        "fixed": "19.0.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "58a226f29c04ee56bbb02cc661f020d568849cad"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "58a226f29c04ee56bbb02cc661f020d568849cad"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v19.0.3"
                  },
                  {
                    "cpe": "cpe:2.3:a:semantic-release_project:semantic-release:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "17.0.4"
                      },
                      {
                        "fixed": "19.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v18.0.1",
            "v18.0.0",
            "v17.4.7",
            "v17.4.6",
            "v17.4.5",
            "v17.4.4",
            "v17.4.3",
            "v17.4.2",
            "v17.4.1",
            "v17.4.0",
            "v17.3.9",
            "v17.3.8",
            "v17.3.7",
            "v17.3.6",
            "v17.3.5",
            "v17.3.4",
            "v17.3.3",
            "v17.3.2",
            "v17.3.1",
            "v17.3.0",
            "v17.2.4",
            "v17.2.3",
            "v17.2.2",
            "v17.2.1",
            "v17.2.0",
            "v17.1.2",
            "v17.1.1",
            "v17.1.0",
            "v17.0.8",
            "v17.0.7",
            "v17.0.6",
            "v17.0.5",
            "v17.0.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31051.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.641605591Z",
      "provider": "osv",
      "references": [
        "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI",
        "https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31051.json",
        "https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-31051",
        "https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-200"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31051.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-31051",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489039,
  "published_at": "2022-06-09T20:05:12+00:00"
}