Skip to content
mentoor

Topic 2 of 5 · 5 min read

Security advisories for AI tools and agents

Goal: Read a security advisory and decide which of your installs are affected and what action each needs.

A security advisory tells you what is broken, which versions are affected and what to do; your job is to check your installs against it and act the same day for anything that holds credentials or can run commands.

Check yourself · 1 of 3

An advisory says an agent plugin before version 2.1 can leak environment variables. Your plugin is at 2.0 and holds a cloud key. What is the full response?

Choose one answer

Why it matters

AI tools are software, and they have vulnerabilities like any other. Coding agents run shell commands. Browser extensions read pages. MCP servers (small programs that give an assistant access to files, databases or APIs) often hold API keys. A flaw in one of them can let an attacker read your files, run commands or use your keys. Prompt injection, where hidden text in a web page or document steers the assistant, makes this worse because the attacker does not need access to your machine, only to something the tool reads.

Where advisories come from

  • The vendor's own security page or release notes for the tool.
  • The GitHub Advisory Database, which lists reviewed advisories for packages with the affected and fixed versions.
  • CVE records. A CVE is a numbered public ID for one vulnerability. It lets everyone talk about the same flaw.
  • The CISA Known Exploited Vulnerabilities catalogue, a short list of flaws already used in attacks. If your tool is on it, treat it as urgent.

How to read an advisory

  1. Affected versions. Compare with what you run. Check the real version, not the version you think you installed.
  2. Conditions. Some flaws need a setting, a network exposure or a user click. Note whether your setup meets them.
  3. Impact. Does it expose files, allow command execution or leak keys? Impact decides urgency.
  4. Fix. Usually an update. Sometimes a setting to disable, or "no fix yet".
  5. Exposure. If a secret could have been read, updating is not enough. Rotate the key.

Before and after

Before: An advisory says an MCP server before version 1.4.2 allows arbitrary file reads. You think "we probably use something else" and move on.

After: You list every MCP server in each team member's config, find one at 1.3.9 with a cloud API key in its environment, update it to 1.4.2 and rotate the key because the old version could have exposed it.

What goes wrong

  • No inventory. You cannot check what you cannot list. Keep a list of tools, extensions and servers per machine.
  • Update without rotating. The fix closes the hole, but anything already read stays compromised.
  • Ignoring "low" scores. A rating for a library may understate the risk when an agent with shell access runs it.
  • Auto-installing from unknown sources. A new MCP server from a stranger is a new program with your permissions.

If no fix exists, disable the tool or remove its access to secrets until one ships.

Examples

Triage of one advisory across three machines

Advisory: an MCP file server before 1.4.2 lets a crafted path read files outside its folder.

Machine Version Holds secrets? Action
Ana laptop 1.3.9 Cloud key in env Update to 1.4.2, rotate the key
Ben laptop 1.4.2 Yes None, already fixed
Build box not installed No None

Only the row with an old version and a secret needs the full response.

A short code branch: checking a Node install

For engineers, list what is installed and its version before reading the advisory.

npm ls -g --depth=0
npm audit --omit=dev

The first command shows global tools, including agent CLIs. The second reports known advisories for a project's dependencies. Neither covers servers started from a config file, so list those by hand.

Key points

  • An advisory gives affected versions, conditions, impact and a fix; compare each with what you actually run.
  • Tools that run commands or hold API keys, such as coding agents and MCP servers, deserve same-day attention.
  • Updating closes the hole but does not undo exposure, so rotate any key the vulnerable version could have read.
  • Keep an inventory of installed tools, extensions and servers, because you cannot check advisories against a list you do not have.
  • When no fix exists, disable the tool or remove its access to secrets until a patched version ships.

Common mistakes

  • Reading the advisory title and assuming it does not apply without checking the installed version.
  • Updating the tool but leaving the exposed API key unchanged.
  • Treating a medium score as safe for a tool that can run shell commands or read files.
  • Adding MCP servers or extensions from unknown authors without any review.

Check yourself · 2 of 3

Which source lists vulnerabilities that attackers are already exploiting, helping you decide what to patch first?

Choose one answer

Check yourself · 3 of 3

You cannot tell whether your team is affected by a new MCP server advisory. What is missing?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic