# Fixing OS Vulnerabilities

The CLI enables you to to easily fix OS vulnerabilities in supported Linux distributions.

To fix the vulnerabilities in your OS, the CLI replaces the vulnerable packages with their sealed versions. To download the sealed versions you will need an [access token](/fundamentals/artifact-server/generating-a-token.md) to the Seal artifact.

1. Set the access token and project name. There are two ways to do this:

   * Set the access token in the `SEAL_TOKEN` environment variable, and the project name in `SEAL_PROJECT`.

   ```bash
   export SEAL_TOKEN=<token> # the access token for the server
   export SEAL_PROJECT=<project-id> # the ID of the current project
   ```

   * Set the access token and project name in a `.seal-config.yml` configuration file from the directory you will run the `seal fix` command.

   ```yaml
   token: <token> # the access token for the server
   project: <project-id> # the ID of the current project
   ```

The project ID may include only ASCII letters, digits, underscore, hyphen or period, and mustn't be over 255 characters long.

{% hint style="warning" %}
You should use the ID of the project as shown in the **Projects** tab. If you use a different ID, the platform will record the pulled libraries under a different project.
{% endhint %}

2. Run `seal fix --os --mode all`. The vulnerable packages that have a patched version will be replaced with their sealed version.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealsecurity.io/fundamentals/cli/fixing-os-vulnerabilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
