Skip to content

Filter out __proto__ keys from being set if they are in the configuration. - #1580

Merged
dpvc merged 1 commit into
developfrom
fix/proto-filter
Oct 21, 2026
Merged

dpvc merged 1 commit into
developfrom
fix/proto-filter

Conversation

@dpvc

@dpvc dpvc commented Oct 13, 2026

Copy link
Copy Markdown
Member

This PR filters out the __proto__ key from being used in MathJax configurations, preventing potential prototype polution on the Object object, just in case (though I see no viable way that this could be used by a malicious actor outside of situations that already have much worse outcomes).

@dpvc
dpvc requested a review from zorkow October 13, 2026 18:35
@dpvc dpvc added this to the v4.2 milestone Oct 13, 2026
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.13%. Comparing base (e521742) to head (e6c2594).

Additional details and impacted files
@@            Coverage Diff             @@
##           develop    #1580     +/-   ##
==========================================
  Coverage    87.13%   87.13%             
==========================================
  Files          392      392             
  Lines        89279    89280      +1     
  Branches      5079     3385   -1694     
==========================================
+ Hits         77793    77794      +1     
  Misses       11486    11486             

☔ 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.

@zorkow zorkow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@dpvc
dpvc merged commit 0a694bb into develop Oct 21, 2026
3 checks passed
@dpvc
dpvc deleted the fix/proto-filter branch October 21, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants