
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Gator is a Javascript event delegation library.
It is around 800 bytes when gzipped and minified and has no external dependencies.
Out of the box Gator works in
The legacy.js
plugin adds support for
When using the legacy plugin only single classes, single ids, and single tag names are supported for selectors
Include gator on your page before the closing </body>
tag
<script src="/path/to/gator.min.js"></script>
Add some events
<script>
// add a click event to document that checks for elements with class expand
Gator(document).on('click', '.expand', function(e) {
console.log('clicked on', this);
return false;
});
// add a click event to document with no delegation
Gator(document).on('click', function() {
console.log('clicked on document!');
});
// remove all click events on .expand
Gator(document).off('click', '.expand');
// remove all click events on document
Gator(document).off('click');
</script>
Full documentation is available at http://craig.is/riding/gators
FAQs
Event delegation in javascript
The npm package gator receives a total of 77 weekly downloads. As such, gator popularity was classified as not popular.
We found that gator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.