Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Alleviate browser bugs for input events
The 'input'
event is awesome. It's triggerred when an input is modified.
At least it's meant to. All browsers currently have some circumstances where they fail to trigger it. See here for a nice summary.
inputevent
libraryThis library alleviates this by firing the missing 'input'
events when needed.
load the library
call inputevent.install()
Iit correctly detects what needs to be patched for all browsers, including future versions that hopefully will fix their behavior
Instead of targetting particular versions of browser,
we listen for the first 'input'
or 'change'
event triggerred
for the problematic types of inputs.
If an 'input'
event is received first, all is well.
Otherwise, we listen for future 'change'
events and
trigger a corresponding 'input'
event each time.
It's about 50 lines of code.
In browsers that we "fix", the 'input'
event happens after the 'change'
event
instead of before.
We make a best effort to distinguish between native events and those triggered by JS code.
We ignore non-native events completely, so if you trigger a 'change'
event with JS code for a "fixed" type of input, we won't trigger an 'input
' event. Thanks to incomplete support for event.isTrusted
in Chrome / Safari / Opera, events that are triggeried via JS and not using jQuery may not be distinguished though.
Similarly, triggering a 'change'
or an 'input'
event with JS code (not using jQuery and with a browser not supporting isTrusted
), before an actual user interaction happens, could fool the detection code into erroneously thinking that the browser needs (or doesn't need) "fixing".
FAQs
Alleviate browser bugs for input events
The npm package inputevent receives a total of 8 weekly downloads. As such, inputevent popularity was classified as not popular.
We found that inputevent 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.