Skip to content

build(deps): update dependency dottie to v2.0.7 [security] - #374

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-dottie-vulnerability
Open

build(deps): update dependency dottie to v2.0.7 [security]#374
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-dottie-vulnerability

Conversation

@renovate

@renovaterenovateBot commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageChangeAgeConfidence
dottie2.0.62.0.7ageconfidence

dottie is vulnerable to Prototype Pollution bypass via non-first path segments in set() and transform()

CVE-2026-27837 / GHSA-r5mx-6wc6-7h9w

More information

Details

Summary

dottie versions 2.0.4 through 2.0.6 contain an incomplete fix for CVE-2023-26132. The prototype pollution guard introduced in commit 7d3aee1 only validates the first segment of a dot-separated path, allowing an attacker to bypass the protection by placing __proto__ at any position other than the first.

Both dottie.set() and dottie.transform() are affected.

Details

The existing guard checks only pieces[0] === '__proto__'. When a path like 'a.__proto__.polluted' is used, pieces[0] evaluates to 'a', not '__proto__', so the guard is bypassed.

Inside the traversal loop, current['__proto__'] = {} triggers the __proto__ setter, replacing the intermediate object's prototype. The final value is then written onto this new prototype.

Important distinction: This vulnerability does NOT pollute the global Object.prototype. It injects properties into a specific object's prototype chain. However, injected properties are invisible to hasOwnProperty() and Object.keys(), which makes them difficult to detect and can lead to authorization bypass in common coding patterns.

PoC
constdottie=require('dottie');// set() bypassconstobj={};dottie.set(obj,'session.__proto__.isAdmin',true);console.log(obj.session.isAdmin);// trueconsole.log(({}).isAdmin);// undefinedconsole.log(obj.session.hasOwnProperty('isAdmin'));// false// transform() bypassconstflat={'user.__proto__.role': 'admin','user.name': 'guest'};constresult=dottie.transform(flat);console.log(result.user.role);// 'admin'console.log(({}).role);// undefined

Tested on Node.js v20 and v22, dottie 2.0.6, Windows 11.

Impact

The primary risk is authorization bypass. In a typical server-side scenario where dottie is used to process user input (e.g., via Sequelize, which depends on dottie with ~1.3M weekly npm downloads), an attacker can inject properties like isAdmin: true into objects used for access control decisions. Since the injected property is not an own property, standard checks using hasOwnProperty() or Object.keys() will not reveal it, while property access like if (session.isAdmin) will return true.

Additionally, replacing an object's prototype via current['__proto__'] = {} strips all inherited methods, potentially causing TypeError exceptions and denial of service.

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

mickhansen/dottie.js (dottie)

v2.0.7

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovateBot requested a review from a teamFebruary 27, 2026 18:54
@codecov

codecovBot commented Feb 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.67%. Comparing base (cd0c82b) to head (9c7ec1d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #374 +/- ##
=======================================
Coverage 92.67% 92.67% =======================================
Files 15 15 Lines 232 232 =======================================
Hits 215 215 Misses 17 17 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch from b6a1241 to 5a153e4CompareMarch 5, 2026 16:41
@renovaterenovateBot changed the title build(deps): update dependency dottie to v2.0.7 [security]build(deps): update dependency dottie to v2.0.7 [security] - autoclosedMar 27, 2026
@renovaterenovateBot closed this Mar 27, 2026
@renovate
renovateBot deleted the renovate/npm-dottie-vulnerability branch March 27, 2026 02:46
@renovaterenovateBot changed the title build(deps): update dependency dottie to v2.0.7 [security] - autoclosedbuild(deps): update dependency dottie to v2.0.7 [security]Mar 30, 2026
@renovaterenovateBot reopened this Mar 30, 2026
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch 2 times, most recently from 5a153e4 to 9b1283dCompareMarch 30, 2026 19:04
@renovaterenovateBot changed the title build(deps): update dependency dottie to v2.0.7 [security]build(deps): update dependency dottie to v2.0.7 [security] - autoclosedApr 27, 2026
@renovaterenovateBot closed this Apr 27, 2026
@renovaterenovateBot changed the title build(deps): update dependency dottie to v2.0.7 [security] - autoclosedbuild(deps): update dependency dottie to v2.0.7 [security]Apr 27, 2026
@renovaterenovateBot reopened this Apr 27, 2026
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch 2 times, most recently from 9b1283d to d8af18fCompareApril 27, 2026 20:39
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch from d8af18f to a76d947CompareMay 12, 2026 13:57
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch from a76d947 to f25912aCompareMay 28, 2026 22:37
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch from f25912a to 3e94888CompareJune 11, 2026 08:14
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch 2 times, most recently from 2573b5a to dda86ebCompareJuly 17, 2026 03:50
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch 2 times, most recently from c043614 to b62b027CompareJuly 24, 2026 22:56
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch from b62b027 to 6f06969CompareAugust 12, 2026 02:31
@renovate
renovateBotforce-pushed the renovate/npm-dottie-vulnerability branch from 6f06969 to 9c7ec1dCompareAugust 14, 2026 23:11
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants