Skip to content
Heist/ feed
Back to feed
Low

cosmicstack-labs mercury-agent bg agent.ts Agent.handleBgCommand authorization

Type: advisorySources: OSV

A vulnerability was found in cosmicstack-labs mercury-agent up to 1.1.12. This issue affects the function Agent.handleBgCommand of the file src/core/agent.ts of the component bg Command Handler. Performing a manipulation results in incorrect authorization. It is possible to initiate the attack remotely. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-18997
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:05 UTC · Revision 1

Source evidence

cosmicstack-labs mercury-agent bg agent.ts Agent.handleBgCommand authorization

core-osv · Original source

Published 6 Aug 2026, 04:30 UTC

A vulnerability was found in cosmicstack-labs mercury-agent up to 1.1.12. This issue affects the function Agent.handleBgCommand of the file src/core/agent.ts of the component bg Command Handler. Performing a manipulation results in incorrect authorization. It is possible to initiate the attack remotely. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.

osv:CVE-2026-18997
Complete source record
{
  "id": "ed2954fc24f05a02aabc51f6e053c10ae8f6ba2861929ae0d9cebdcc7929e1f7",
  "url": "https://osv.dev/vulnerability/CVE-2026-18997",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "cosmicstack-labs mercury-agent bg agent.ts Agent.handleBgCommand authorization",
    "summary": "A vulnerability was found in cosmicstack-labs mercury-agent up to 1.1.12. This issue affects the function Agent.handleBgCommand of the file src/core/agent.ts of the component bg Command Handler. Performing a manipulation results in incorrect authorization. It is possible to initiate the attack remotely. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.",
    "evidence": "osv:CVE-2026-18997",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-18997",
      "aliases": [
        "CVE-2026-18997"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cosmicstack-labs/mercury-agent",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8cee8ab40f6a5d5cdc5cb93feaeb103ef3a5eaec"
                },
                {
                  "last_affected": "587fad1bf9449598d1b27833f8c7db55d164741a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.1.0"
                      },
                      {
                        "last_affected": "1.1.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.3"
                      },
                      {
                        "last_affected": "1.1.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.4"
                      },
                      {
                        "last_affected": "1.1.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.5"
                      },
                      {
                        "last_affected": "1.1.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.6"
                      },
                      {
                        "last_affected": "1.1.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.7"
                      },
                      {
                        "last_affected": "1.1.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.9"
                      },
                      {
                        "last_affected": "1.1.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.11"
                      },
                      {
                        "last_affected": "1.1.11"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.1.12"
                      },
                      {
                        "last_affected": "1.1.12"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.1.12"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.1.0",
            "1.1.11",
            "1.1.12",
            "1.1.3",
            "1.1.4",
            "1.1.5",
            "1.1.6",
            "1.1.7",
            "1.1.9",
            "v1.1.12",
            "v1.1.11",
            "v1.1.9",
            "v1.1.6",
            "v1.1.5",
            "archive/feat/we-chat",
            "v1.1.4",
            "v1.1.3",
            "v1.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18997.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.586320095Z",
      "provider": "osv",
      "references": [
        "https://github.com/cosmicstack-labs/mercury-agent/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18997.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-18997",
        "https://vuldb.com/cve/CVE-2026-18997",
        "https://vuldb.com/submit/862627",
        "https://vuldb.com/vuln/386380",
        "https://github.com/cosmicstack-labs/mercury-agent/issues/73",
        "https://vuldb.com/vuln/386380/cti"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-285",
          "CWE-863"
        ],
        "cna_assigner": "VulDB",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.1.1"
                  },
                  {
                    "last_affected": "1.1.1"
                  },
                  {
                    "introduced": "1.1.2"
                  },
                  {
                    "last_affected": "1.1.2"
                  },
                  {
                    "introduced": "1.1.8"
                  },
                  {
                    "last_affected": "1.1.8"
                  },
                  {
                    "introduced": "1.1.10"
                  },
                  {
                    "last_affected": "1.1.10"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18997.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-18997",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501027,
  "published_at": "2026-08-06T04:30:10.579+00:00"
}