Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
sane-domparser-error
Advanced tools
Provides sane and machine readable parser errors for DOMParser and XHR (with XMLHttpRequest.responseType = 'document'
).
DOMParser and XHR currently do not throw an exception if a document could not be parsed, but instead return an error document.
Instead of
<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">
XML Parsing Error: prefix not bound to a namespace\n Location: file:////tmp/index.html
Line Number 1, Column 57:
<sourcetext>
<html xmlns="http://www.w3.org/1999/xhtml"><head/><body><namespace:customtag><!-- namespace:customtag--></namespace:customtag></body></html>
--------------------------------------------------------^
</sourcetext>
</parsererror>
you'll receive
new Error('XML Parsing Error: prefix not bound to a namespace');
$ npm run-script watchify
$ xdg-open test/test.html
or just
$ npm test
FAQs
Provides sane parser errors for DOMParser and XHR
The npm package sane-domparser-error receives a total of 8,210 weekly downloads. As such, sane-domparser-error popularity was classified as popular.
We found that sane-domparser-error 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.