Vulnerabilities

26 via 61 paths

Dependencies

577

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 26
  • 3
Severity
  • 2
  • 10
  • 11
  • 6
Status
  • 29
  • 0
  • 0

critical severity

Heap-based Buffer Overflow

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow due to the Sharp image optimization. An attacker can execute code on the server by supplying a malicious AVIF image for Astro to process through its default Sharp-based image service. When Astro optimizes untrusted AVIF content, the underlying libheif dependency used by Sharp can be triggered during image handling, allowing the attacker to compromise the application process that performs the optimization. This can crash or fully take over the server-side image processing workflow, putting the deployment at risk.

Remediation

Upgrade astro to version 7.2.8 or higher.

References

critical severity

Resources Downloaded over Insecure Protocol

  • Vulnerable module: esbuild
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2 › esbuild@0.27.7
  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2 › vite@6.4.6 › esbuild@0.25.12

Overview

esbuild is an An extremely fast JavaScript and CSS bundler and minifier.

Affected versions of this package are vulnerable to Resources Downloaded over Insecure Protocol in the installFromNPM process. An attacker can execute arbitrary code with the privileges of the Deno process by supplying a malicious binary through control of the NPM_CONFIG_REGISTRY environment variable.

Remediation

Upgrade esbuild to version 0.28.1 or higher.

References

high severity

Use of Non-Canonical URL Paths for Authorization Decisions

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Use of Non-Canonical URL Paths for Authorization Decisions in validateAndDecodePathname and rewrite routing in findRouteToRewrite. An attacker can reach protected routes by sending an over-encoded URL whose path is only partially decoded for middleware checks but then decoded again during route matching. This lets unauthenticated requests slip past pathname-based middleware authorization and still resolve to routes such as /admin or /api/admin. The result is unauthorized access to protected pages or APIs that the application intended to block.

Notes

  • The bypass is only exposed in deployments that are authorized by inspecting context.url.pathname and then handing the request back into Astro’s rewrite flow with next(context.url), so middleware and routing can see different pathname representations for the same request.
  • The affected route checks are not limited to page paths; the maintainer’s advisory examples include API and other internal endpoints, so applications using pathname-based protections for non-page handlers are in scope as well.

Remediation

Upgrade astro to version 6.4.8 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the /_server-islands/[name] route handler, which buffers and parses the entire request body as JSON without enforcing a size limit. An attacker can cause the server process to exhaust available memory and crash by sending a single unauthenticated request with a crafted payload containing many small JSON objects, resulting in significant memory amplification.

Remediation

Upgrade astro to version 6.0.0-beta.20 or higher.

References

high severity

Uncontrolled Recursion

  • Vulnerable module: ioredis
  • Introduced through: ioredis@4.31.0

Detailed paths

  • Introduced through: del-website@discordextremelist/website › ioredis@4.31.0
    Remediation: Upgrade to ioredis@6.0.0.

Overview

ioredis is a Redis client for Node.js.

Affected versions of this package are vulnerable to Uncontrolled Recursion in the RESP protocol parser in lib/parser.js. An attacker can crash the Node.js client process by sending crafted RESP byte streams with repeated nested array headers. The parser recurses while handling nested arrays, exhausting the V8 call stack and triggering an uncaught RangeError. In affected deployments that consume data from a malicious or compromised Redis endpoint, this terminates the process and disrupts Redis client operations.

Remediation

Upgrade ioredis to version 6.0.0-beta.1 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: @opentelemetry/core
  • Introduced through: @sentry/node@9.47.2 and @sentry/profiling-node@9.47.2

Detailed paths

  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-amqplib@0.46.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-connect@0.43.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-express@0.47.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-fs@0.19.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-hapi@0.45.2 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-http@0.57.2 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.54.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-koa@0.47.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-mongoose@0.46.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-pg@0.51.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-undici@0.10.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/resources@1.30.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/sdk-trace-base@1.30.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-amqplib@0.46.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-connect@0.43.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-express@0.47.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-fs@0.19.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-hapi@0.45.2 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-http@0.57.2 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.54.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-koa@0.47.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-mongoose@0.46.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-mysql2@0.45.2 › @opentelemetry/sql-common@0.40.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/instrumentation-pg@0.51.1 › @opentelemetry/sql-common@0.40.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-pg@0.51.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-undici@0.10.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › @opentelemetry/sdk-trace-base@1.30.1 › @opentelemetry/resources@1.30.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/resources@1.30.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/sdk-trace-base@1.30.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-mysql2@0.45.2 › @opentelemetry/sql-common@0.40.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/instrumentation-pg@0.51.1 › @opentelemetry/sql-common@0.40.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › @opentelemetry/sdk-trace-base@1.30.1 › @opentelemetry/resources@1.30.1 › @opentelemetry/core@1.30.1
    Remediation: Upgrade to @sentry/profiling-node@10.0.0.

Overview

@opentelemetry/core is an OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the extract function. An attacker can cause excessive memory allocation by sending oversized baggage HTTP headers or equivalent data via non-HTTP transports.

Note: This is only exploitable if the deployment does not enforce transport-layer header size limits, such as when using custom transports or when default HTTP header size limits are increased.

Workaround

This vulnerability can be mitigated by configuring strict header size limits at the server or gateway level, or by validating input size before passing it to the propagator in non-HTTP transports.

Remediation

Upgrade @opentelemetry/core to version 2.8.0 or higher.

References

high severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the prerenderedErrorPageFetch. An attacker can access sensitive information or interact with internal resources by sending a crafted request with a malicious Host header, which causes the server to fetch error pages from an attacker-controlled host and reflect the response back to the client.

Note: This is only exploitable if the deployment uses prerendered error pages and the internal createRequestFromNodeRequest builder with app.render() without overriding the default error page fetch behavior.

Remediation

Upgrade astro to version 6.4.6 or higher.

References

high severity

Uncaught Exception

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Uncaught Exception via createRequest and createRequestFromNodeRequest in node.ts when processing a request with a malformed port value in the Host header (e.g. example.com:65536). An unauthenticated remote attacker can send a request bearing such a header, causing an unhandled URL parsing exception that crashes the request handler and returns a 500 Internal Server Error.

Note: In the default standalone configuration the server process continues running after the crash, so availability impact is limited to the individual request.

Remediation

Upgrade astro to version 7.2.3 or higher.

References

high severity

Cross-site Scripting (XSS)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the prerenderElementChildren function in jsx.ts and the streaming renderer in streaming.ts, where dynamic children of <script> and <style> elements (e.g. <script>{value}</script>) in MDX are not escaped before being written to the output. An attacker who can control the dynamic expression passed as a child of a <script> or <style> tag in MDX content can inject arbitrary HTML, breaking out of the element and executing attacker-controlled script in the victim's browser. The root cause is that all plain-string children of these elements were unconditionally marked as raw HTML strings, treating dynamic values the same as literal content injected by remark/rehype plugins.

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 &lt; and > can be coded as &gt; 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 astro to version 7.3.2 or higher.

References

high severity

GPL-3.0 license

  • Module: express-sitemap
  • Introduced through: express-sitemap@1.8.0

Detailed paths

  • Introduced through: del-website@discordextremelist/website › express-sitemap@1.8.0

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: tickle
  • Introduced through: express-sitemap@1.8.0

Detailed paths

  • Introduced through: del-website@discordextremelist/website › express-sitemap@1.8.0 › tickle@1.4.0

GPL-3.0 license

high severity

AGPL-3.0 license

  • Module: ua-parser-js
  • Introduced through: ua-parser-js@2.0.10

Detailed paths

  • Introduced through: del-website@discordextremelist/website › ua-parser-js@2.0.10

AGPL-3.0 license

medium severity
new

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: @sentry/node@9.47.2, @sentry/profiling-node@9.47.2 and others

Detailed paths

  • Introduced through: del-website@discordextremelist/website › @sentry/node@9.47.2 › minimatch@9.0.9
    Remediation: Upgrade to @sentry/node@10.40.0.
  • Introduced through: del-website@discordextremelist/website › @sentry/profiling-node@9.47.2 › @sentry/node@9.47.2 › minimatch@9.0.9
    Remediation: Upgrade to @sentry/profiling-node@10.40.0.
  • Introduced through: del-website@discordextremelist/website › ejs@3.1.10 › jake@10.9.4 › filelist@1.0.6 › minimatch@5.1.9

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.

Remediation

Upgrade minimatch to version 11.0.1 or higher.

References

medium severity

Improper Output Neutralization for Logs

  • Vulnerable module: morgan
  • Introduced through: morgan@1.10.1

Detailed paths

  • Introduced through: del-website@discordextremelist/website › morgan@1.10.1
    Remediation: Upgrade to morgan@1.11.0.

Overview

morgan is a HTTP request logger middleware for node.js.

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the :remote-user token, which extracts the Basic auth username from the Authorization header and writes it to the log stream without neutralizing control characters. An attacker can inject forged log lines by sending crafted Authorization headers containing CR or LF bytes, potentially breaking the one-request-per-line structure of access logs and misleading downstream log consumers.

Workaround

This vulnerability can be mitigated by using a custom format string that does not include :remote-user.

Remediation

Upgrade morgan to version 1.11.0 or higher.

References

medium severity

Improper Output Neutralization for Logs

  • Vulnerable module: morgan
  • Introduced through: morgan@1.10.1

Detailed paths

  • Introduced through: del-website@discordextremelist/website › morgan@1.10.1
    Remediation: Upgrade to morgan@1.12.0.

Overview

morgan is a HTTP request logger middleware for node.js.

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs in its format-token expansion, which does not neutralize the Unicode line separators U+0085 (NEL), U+2028 (LINE SEPARATOR), and U+2029 (PARAGRAPH SEPARATOR) in logged fields such as :url, :user-agent, :referrer, :req[header], and :remote-user, unlike the earlier fix that escaped C0 control characters. An attacker can forge additional log records by sending ordinary HTTP request headers or a request URL containing these characters, which Unicode-aware downstream log processors interpret as line breaks and split into separate entries. Exploitation requires the downstream log analysis tooling to treat these code points as record separators, and all built-in formats (combined, common, default, and short) are affected.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-5078.

Remediation

Upgrade morgan to version 1.12.0 or higher.

References

medium severity

Improper Output Neutralization for Logs

  • Vulnerable module: morgan
  • Introduced through: morgan@1.10.1

Detailed paths

  • Introduced through: del-website@discordextremelist/website › morgan@1.10.1
    Remediation: Upgrade to morgan@1.12.1.

Overview

morgan is a HTTP request logger middleware for node.js.

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the escapeLogField function. An attacker can manipulate log entries by injecting unescaped double quotes into HTTP headers such as User-Agent or Referer, causing log consumers that parse logs by field position to misinterpret attacker-supplied data as subsequent fields.

Remediation

Upgrade morgan to version 1.12.1 or higher.

References

medium severity
new

Improper Handling of Case Sensitivity

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity in the /_image endpoint used by the @astrojs/node adapter, where the check that a requested local image is inside the build output directory compares paths case-insensitively. An attacker can read image files from outside the output directory by requesting /_image with an href such as /../../DIST/client/secret.png, which resolves to a directory that differs from the output directory only by letter case. Only sites that use on-demand rendering with @astrojs/node on a case-sensitive filesystem, with a case-variant directory next to the output directory, are affected, and only files the image service accepts can be read.

Remediation

Upgrade astro to version 7.4.7 or higher.

References

medium severity

Incorrect Authorization

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Incorrect Authorization in BaseApp.removeBase, FetchState pathname stripping, and matchRequest in the routing and app base-handling code. An attacker can reach protected routes by sending a request whose pathname extends the configured base with a non-segment suffix, such as /appX/admin, causing routing to resolve the request as /admin while middleware still inspects the unstripped /appX/admin pathname. This lets an unauthenticated remote attacker bypass pathname-based middleware checks and access routes the application intended to protect under a non-root base.

Workarounds

  • Reject requests whose pathname does not begin with the configured base followed by a path-segment boundary, so paths like /appX/admin, /app2/admin, or /app-/admin are not treated as being under /app and cannot bypass pathname-based middleware authorization.
  • Do not rely solely on prefix checks of context.url.pathname for authorization when using a non-root base; enforce route access in a way that only permits the exact base path or paths under base/, preventing the router and middleware from disagreeing about whether a request is protected.

Remediation

Upgrade astro to version 7.2.4 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the data-astro-template attribute when a component uses a client:* directive and the slot name is not properly escaped. An attacker can inject arbitrary HTML and execute malicious scripts by supplying a crafted slot name value.

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 &lt; and > can be coded as &gt; 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 astro to version 6.3.3 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the server-side generation of the style element when unescaped animation properties are interpolated from attacker-controlled input. An attacker can execute arbitrary JavaScript in the context of the affected application by injecting specially crafted values that break out of the style element and insert malicious scripts.

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 &lt; and > can be coded as &gt; 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 astro to version 7.1.0 or higher.

References

medium severity
new

Cross-site Scripting (XSS)

  • Vulnerable module: @astrojs/prism
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2 › @astrojs/markdown-remark@6.3.11 › @astrojs/prism@3.3.0

Overview

@astrojs/prism is an Add Prism syntax highlighting support to your Astro site

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in runHighlighterWithAstro(), which returns the code unescaped when the requested language has no Prism grammar, and every caller inserts the result into the page as raw HTML. An attacker can execute arbitrary JavaScript in a visitor's browser by placing HTML in a code block labelled with an unsupported language, such as vue, svelte, mdx, console or text. Only applications that render untrusted code through the <Prism /> component or the prism() extension of @astrojs/markdoc are affected.

Workaround

This vulnerability can be avoided by using Shiki instead of Prism for syntax highlighting.

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 &lt; and > can be coded as &gt; 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 @astrojs/prism to version 4.1.2 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the defineScriptVars function due to incomplete sanitization of closing </script> tags within injected variables. An attacker can execute arbitrary JavaScript in the victim's browser by supplying specially crafted input that bypasses the case-sensitive regex, resulting in early closure of the script block and injection of attacker-controlled HTML or JavaScript.

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 &lt; and > can be coded as &gt; 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 astro to version 6.1.6 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the renderHTMLElement function. An attacker can inject arbitrary event-handler attributes or sibling elements, including <script>, into the server-side rendered output by supplying maliciously crafted object keys as spread props to a native HTMLElement-subclass component.

Note: This is only exploitable if the SSR runtime exposes a global HTMLElement (such as in Deno, Bun with a DOM shim, or jsdom/happy-dom in Node) and a class extending HTMLElement is used directly as a component that receives untrusted-keyed spread props.

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 &lt; and > can be coded as &gt; 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 astro to version 7.0.6 or higher.

References

low severity

Open Redirect

  • Vulnerable module: @astrojs/internal-helpers
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2 › @astrojs/internal-helpers@0.7.6
  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2 › @astrojs/markdown-remark@6.3.11 › @astrojs/internal-helpers@0.7.6

Overview

@astrojs/internal-helpers is an Internal helpers used by core Astro packages.

Affected versions of this package are vulnerable to Open Redirect via the static file handler when the trailingSlash: 'always' configuration is enabled. An attacker can redirect users to unintended external sites by delivering a crafted link containing a backslash-prefixed path to a user.

Note: This is only exploitable if the trailingSlash: 'always' setting is enabled, the request path does not have a file extension in its final segment, and the attacker is able to deliver the crafted link to a user.

Workaround

This vulnerability can be mitigated by using the default trailingSlash: 'ignore' setting, which does not issue trailing-slash redirects in the static file handler.

Remediation

Upgrade @astrojs/internal-helpers to version 0.10.1 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the addAttribute function, which interpolates unescaped object keys as HTML attribute names when spreading props onto elements. An attacker can execute arbitrary JavaScript in the victim's browser session by supplying malicious object keys that break out of the attribute context and inject event handlers or new elements.

Note: This is only exploitable if attacker-controlled input can influence the keys of an object that is spread onto an HTML element using Astro's {...props} attribute spreading feature. This requires SSR or compromised data sources at build time.

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 &lt; and > can be coded as &gt; 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 astro to version 6.4.6 or higher.

References

low severity
new

Incomplete List of Disallowed Inputs

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs via insufficient sanitization of dynamic tag names in the sanitizeElementName helper and the JSX renderer. When a dynamic tag resolves to a string, Astro renders it as a raw HTML element name. The existing filter removed characters such as &, <, >, quotes, and whitespace, but did not handle /. Because HTML parsers treat / inside a tag as an attribute separator, a tag name such as img/src/onerror=alert(1) is rendered as an <img> element with an injected onerror attribute. The JSX renderer used for MDX did not apply any filter to string tag names at all, making it fully unguarded. An attacker who can control the value passed as a dynamic tag name - for example through a URL query parameter - can inject arbitrary HTML attributes and execute JavaScript in the victim's browser.

Note: This is only exploitable in applications that use untrusted input (such as a request parameter or an uncontrolled CMS field) as all or part of an element name, as Astro itself never derives element names from request data.

Workaround

Before upgrading, do not use untrusted input as an element name. If dynamic element selection is required, map the untrusted input to a fixed set of known, safe tag names.

Remediation

Upgrade astro to version 7.4.5 or higher.

References

low severity

Improper Encoding or Escaping of Output

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the transition:persist, transition:scope, or transition:persist-props directives when unescaped values are copied onto the rendered <astro-island> element. An attacker can inject arbitrary HTML or JavaScript into the server-rendered output by supplying crafted input that is reflected into these directives.

Note: This is only exploitable if the application developer passes untrusted, request-derived input directly into a transition directive.

Workaround

This vulnerability can be mitigated by ensuring that untrusted or request-derived input is not passed into transition:persist, transition:scope, or transition:persist-props, or by HTML-escaping or strictly validating such input before use.

Remediation

Upgrade astro to version 7.0.4 or higher.

References

low severity

Reusing a Nonce, Key Pair in Encryption

  • Vulnerable module: astro
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2

Overview

astro is an Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Affected versions of this package are vulnerable to Reusing a Nonce, Key Pair in Encryption of server island parameters. An attacker can inject malicious HTML or script content into a component by replaying encrypted values between props and slots across different components.

Note: This is only exploitable if the application uses server islands, two different server island components share the same key name for a prop and a slot, and an attacker has full control over the value of the overlapping prop in a dynamically rendered page.

Remediation

Upgrade astro to version 6.1.10 or higher.

References

low severity

Directory Traversal

  • Vulnerable module: esbuild
  • Introduced through: lib-comparison@github:advaith1/libs

Detailed paths

  • Introduced through: del-website@discordextremelist/website › lib-comparison@github:advaith1/libs › astro@5.18.2 › esbuild@0.27.7

Overview

esbuild is an An extremely fast JavaScript and CSS bundler and minifier.

Affected versions of this package are vulnerable to Directory Traversal in the servedir process on Windows systems due to improper path normalization. An attacker can access arbitrary files outside the intended directory by crafting requests with backslash (\) path separators.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade esbuild to version 0.28.1 or higher.

References