# CVE-2026-18997: cosmicstack-labs mercury-agent bg agent.ts Agent.handleBgCommand authorization

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-06T04:30:10.579Z
- Modified: 2026-10-23T21:10:00.157Z
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- cosmicstack-labs mercury-agent: 1.1.0; 1.1.1; 1.1.2; 1.1.3; 1.1.4; 1.1.5; 1.1.6; 1.1.7; 1.1.8; 1.1.9; 1.1.10; 1.1.11; and 1 more

## Every score

- VulDB: CVSS:4.0 5.3 Medium `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`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`

## References

- <https://github.com/cosmicstack-labs/mercury-agent/issues/73> (exploit, issue-tracking)
- <https://vuldb.com/vuln/386380> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/386380/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-18997> (third-party-advisory)
- <https://vuldb.com/submit/862627> (third-party-advisory)
- <https://github.com/cosmicstack-labs/mercury-agent/> (product)

## Sources

- CVE List: [CVE-2026-18997](https://www.cve.org/CVERecord?id=CVE-2026-18997), CVE Terms of Use, modified 2026-08-06
- NVD: [CVE-2026-18997](https://nvd.nist.gov/vuln/detail/CVE-2026-18997), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-18997 · Whole record: https://cve.day/CVE-2026-18997.json · Rebuilt by cve.day 2026-11-25T22:59:31.206Z
