Vulnerabilities |
7 via 7 paths |
|---|---|
Dependencies |
381 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
new
- Vulnerable module: hono
- Introduced through: hono@4.12.12
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › hono@4.12.12Remediation: Upgrade to hono@4.12.16.
Overview
hono is an Ultrafast web framework for the Edges
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the bodyLimit function. An attacker can bypass request size restrictions by sending chunked or unknown-length requests, allowing oversized payloads to reach application handlers and potentially receive successful responses before the size check is enforced.
Remediation
Upgrade hono to version 4.12.16 or higher.
References
high severity
new
- Vulnerable module: uuid
- Introduced through: @jellybrick/electron-better-web-request@2.0.0
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @jellybrick/electron-better-web-request@2.0.0 › uuid@13.0.0
Overview
uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.
PoC
cd /home/StrawHat/uuid
npm ci
npm run build
node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
['v4',()=>v4({},new Uint8Array(8),4)],
['v5',()=>v5('x',ns,new Uint8Array(8),4)],
['v6',()=>v6({},new Uint8Array(8),4)],
]) {
try { fn(); console.log(name,'NO_THROW'); }
catch(e){ console.log(name,'THREW',e.name); }
}"
Remediation
Upgrade uuid to version 11.1.1, 14.0.0 or higher.
References
medium severity
new
- Vulnerable module: hono
- Introduced through: hono@4.12.12
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › hono@4.12.12Remediation: Upgrade to hono@4.12.18.
Overview
hono is an Ultrafast web framework for the Edges
Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information through the cache process in the cache middleware. An attacker can cause responses to be cached or served incorrectly by sending requests that elicit Vary headers, Authorization headers, or non-GET methods. As a result, users can receive stale or cross-request content, and authenticated or method-specific responses can be stored or reused in ways that break application behavior and expose the wrong response body.
Workarounds
- Avoid using the cache middleware on endpoints that return authenticated or per-user content unless you can mark those responses as non-cacheable; this prevents cross-user cache leakage and stale user-specific bodies.
Remediation
Upgrade hono to version 4.12.18 or higher.
References
medium severity
new
- Vulnerable module: hono
- Introduced through: hono@4.12.12
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › hono@4.12.12Remediation: Upgrade to hono@4.12.14.
Overview
hono is an Ultrafast web framework for the Edges
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the jsxAttr() and JSX attribute rendering paths in src/jsx/jsx-runtime.ts, src/jsx/base.ts, and src/jsx/dom/render.ts. An attacker can inject executable markup by supplying a crafted attribute name such as one containing quotes, angle brackets, or spaces through JSX props or spread attributes. This lets untrusted input break out of the intended attribute context during server-rendered output or DOM updates, leading to script execution in the user’s browser and compromising the affected page.
Details
Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.
This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.
Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.
Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as < and > can be coded as > in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.
The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.
Types of attacks
There are a few methods by which XSS can be manipulated:
| Type | Origin | Description |
|---|---|---|
| Stored | Server | The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link. |
| Reflected | Server | The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser. |
| DOM-based | Client | The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data. |
| Mutated | The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters. |
Affected environments
The following environments are susceptible to an XSS attack:
- Web servers
- Application servers
- Web application environments
How to prevent
This section describes the top best practices designed to specifically protect your code:
- Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
- Convert special characters such as
?,&,/,<,>and spaces to their respective HTML or URL encoded equivalents. - Give users the option to disable client-side scripts.
- Redirect invalid requests.
- Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
- Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
- Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.
Remediation
Upgrade hono to version 4.12.14 or higher.
References
medium severity
new
- Vulnerable module: hono
- Introduced through: hono@4.12.12
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › hono@4.12.12Remediation: Upgrade to hono@4.12.18.
Overview
hono is an Ultrafast web framework for the Edges
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output the styleObjectForEach and jsxAttr style serialization paths in the JSX runtime. An attacker can inject arbitrary CSS declarations by supplying crafted style object values or property names containing declaration separators such as ;, comments, braces, or other CSS syntax, causing the generated style attribute to include attacker-controlled rules. When application code renders untrusted style objects, the injected CSS can override the page's layout and presentation, hide or reposition content, and load attacker-controlled resources in the victim’s browser, but does not enable JavaScript execution or HTML attribute breakout.
Remediation
Upgrade hono to version 4.12.18 or higher.
References
medium severity
new
- Vulnerable module: hono
- Introduced through: hono@4.12.12
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › hono@4.12.12Remediation: Upgrade to hono@4.12.18.
Overview
hono is an Ultrafast web framework for the Edges
Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input through the verify function in the JWT component. An attacker can supply a signed token with malformed nbf, exp, or iat claims, including non-numeric values or non-finite numbers such as 1e400, to have the claims skipped during validation and use a token that should be rejected. This lets an attacker present tokens with invalid time-based claims and gain unauthorized access to protected JWT-backed functionality.
Note: This is only exploitable if the attacker can issue tokens accepted by the application or has control over the signing key.
Remediation
Upgrade hono to version 4.12.18 or higher.
References
medium severity
- Module: @dehoist/romanize-thai
- Introduced through: @dehoist/romanize-thai@1.0.0
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @dehoist/romanize-thai@1.0.0
MPL-2.0 license
medium severity
- Module: @ghostery/adblocker
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0
MPL-2.0 license
medium severity
- Module: @ghostery/adblocker-content
- Introduced through: @ghostery/adblocker-electron-preload@2.14.1 and @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron-preload@2.14.1 › @ghostery/adblocker-content@2.17.0
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @ghostery/adblocker-content@2.17.0
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker-electron-preload@2.17.0 › @ghostery/adblocker-content@2.17.0
MPL-2.0 license
medium severity
- Module: @ghostery/adblocker-electron
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1
MPL-2.0 license
medium severity
- Module: @ghostery/adblocker-electron-preload
- Introduced through: @ghostery/adblocker-electron@2.14.1 and @ghostery/adblocker-electron-preload@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker-electron-preload@2.17.0
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron-preload@2.14.1
MPL-2.0 license
medium severity
- Module: @ghostery/adblocker-extended-selectors
- Introduced through: @ghostery/adblocker-electron-preload@2.14.1 and @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron-preload@2.14.1 › @ghostery/adblocker-content@2.17.0 › @ghostery/adblocker-extended-selectors@2.17.0
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @ghostery/adblocker-extended-selectors@2.17.0
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @ghostery/adblocker-content@2.17.0 › @ghostery/adblocker-extended-selectors@2.17.0
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker-electron-preload@2.17.0 › @ghostery/adblocker-content@2.17.0 › @ghostery/adblocker-extended-selectors@2.17.0
MPL-2.0 license
medium severity
- Module: @ghostery/url-parser
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @ghostery/url-parser@1.3.1
MPL-2.0 license
medium severity
- Module: @remusao/guess-url-type
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @remusao/guess-url-type@2.1.0
MPL-2.0 license
medium severity
- Module: @remusao/small
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @remusao/small@2.1.0
MPL-2.0 license
medium severity
- Module: @remusao/smaz
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @remusao/smaz@2.2.0
MPL-2.0 license
medium severity
- Module: @remusao/smaz-compress
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @remusao/smaz@2.2.0 › @remusao/smaz-compress@2.2.0
MPL-2.0 license
medium severity
- Module: @remusao/smaz-decompress
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @remusao/smaz@2.2.0 › @remusao/smaz-decompress@2.2.0
MPL-2.0 license
medium severity
- Module: @remusao/trie
- Introduced through: @ghostery/adblocker-electron@2.14.1
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › @ghostery/adblocker-electron@2.14.1 › @ghostery/adblocker@2.17.0 › @remusao/smaz@2.2.0 › @remusao/smaz-compress@2.2.0 › @remusao/trie@2.1.0
MPL-2.0 license
low severity
new
- Vulnerable module: hono
- Introduced through: hono@4.12.12
Detailed paths
-
Introduced through: youtube-music@pear-devs/pear-desktop › hono@4.12.12Remediation: Upgrade to hono@4.12.16.
Overview
hono is an Ultrafast web framework for the Edges
Affected versions of this package are vulnerable to HTML Injection via the jsx element tag. An attacker can inject unintended HTML elements or attributes, corrupt the HTML structure, or execute scripts by supplying malicious tag names as input to the rendering process.
Note: This is only exploitable if applications construct JSX tag names from untrusted input; applications using static or allowlisted tag names are not affected.
Remediation
Upgrade hono to version 4.12.16 or higher.