# CVE-2026-111172: @casl/ability 6.7.5 before 7.0.2 Prototype Pollution via rulesToFields setByPath

Source: https://aplosec.si/cve/CVE-2026-111172/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-111172

Medium 6.0 · Reported · Fixed in 7.0.2 · CWE-1321 · npm

# @casl/ability 6.7.5 before 7.0.2 Prototype Pollution via rulesToFields setByPath

CVE-2026-111172 · published 2026-10-15

In plain words: this type of bug lets someone change parts of the application's data they should not be able to set (prototype pollution or mass assignment). A fixed release is listed.

## Summary

CVE-2026-111172 affects @casl/ability (npm) 6.7.5 before 7.0.2: Prototype pollution via rule condition keys (CWE-1321). Fixed in 7.0.2. CVSS 4.0 base score 6.0 (Medium), assigned by VulnCheck. Published 2026-10-15 by VulnCheck. Credit: Zachariah Mithani.

@casl/ability 6.7.5 before 7.0.2 contains a prototype pollution vulnerability in rulesToFields() that allows attackers to modify inherited builtins via dotted condition keys. Attackers controlling rule conditions can supply keys like 'toString.call' to alter shared builtin functions process-wide, causing denial of service for the Node.js process.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade @casl/ability to 7.0.2 or later. Releases in the affected range (6.7.5 before 7.0.2) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-10-15 CVE published

- 2026-10-28 Public record last updated

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/casl-ability-6.7.5-before-7.0.2-prototype-pollution-via-rulestofields-setbypath](https://www.vulncheck.com/advisories/casl-ability-6.7.5-before-7.0.2-prototype-pollution-via-rulestofields-setbypath)

- [Fix commithttps://github.com/stalniy/casl/commit/58242cb3c7911c8a89bacfb7d732701d81bc1324](https://github.com/stalniy/casl/commit/58242cb3c7911c8a89bacfb7d732701d81bc1324)

- [Fix pull requesthttps://github.com/stalniy/casl/pull/1305](https://github.com/stalniy/casl/pull/1305)

- [Vulnerable codehttps://github.com/stalniy/casl/blob/80f2380d03cfe9b162685d510ba8bc0ce83d0598/packages/casl-ability/src/utils.ts#L11-L29](https://github.com/stalniy/casl/blob/80f2380d03cfe9b162685d510ba8bc0ce83d0598/packages/casl-ability/src/utils.ts#L11-L29)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-111172](https://www.cve.org/CVERecord?id=CVE-2026-111172)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-111172](https://nvd.nist.gov/vuln/detail/CVE-2026-111172)

**Severity:** Medium 6.0 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-111172)

**Package:** @casl/ability

**Ecosystem:** npm

**Affected:** 6.7.5 before 7.0.2

**Fixed:** 7.0.2

**Weakness:** CWE-1321

**CNA:** VulnCheck

**Credit:** Zachariah Mithani finder
