> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/autofix-and-remediation/faq/lockfile-only-updates.md).

# Lockfile-only updates

AutoFix makes the smallest changes required to update dependencies. This means we perform lockfile-only updates whenever applicable for the following package managers:

* NPM
* Yarn
* PNPM
* Bun
* Poetry
* UV

**The example below uses NPM, but the same logic applies for the other package mangers mentioned above.**

Updates to `package.json` are required in most scenarios, however for transitive dependencies this is not required if the parent dependency includes the transitive dependency with a version range that includes the fixed version.

For example, you project includes axios 1.15.0:

{% code title="package.json" %}

```json
{
	"dependencies": {
		"axios": "1.15.0"
	}
}
```

{% endcode %}

Axios itself depends on `follow-redirects` :

{% code title="package.json (axios)" %}

```json
{
    "dependencies": {
    "follow-redirects": "^1.15.11",
    "form-data": "^4.0.5",
    "proxy-from-env": "^2.1.0"
  }
}
```

{% endcode %}

If at the time of installing the dependency the latest version of `follow-redirects` was `1.15.11` , your lockfile will refer to `follow-redirects` version `1.15.11` , this version contains **CVE-2026-40895**.

This CVE is fixed in version `1.16.0` of `follow-redirects`. follow-redirects is **not present** in the package.json but axios allows version `1.16.0` as defined by version selector `^1.15.11`. This means the issue can be fixed in the lockfile without changing the package.json, just like when you perform a clean npm install.

For this case AutoFix will only update the lockfile and not make changes to the package.json.

## Will this be reverted on a fresh install?

No, since axios is specifying the version range as `^1.15.11` , npm/yarn/pnpm/bun will automatically choose the latest minor version, which is `1.16.0` at the time of writing.

Same behavior applies for Poetry and UV.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/autofix-and-remediation/faq/lockfile-only-updates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
