Cross-site Scripting (XSS) Affecting aspnetcore-targeting-pack-8.0 package, versions <0:8.0.12-1.el8_10


Severity

Recommended
high

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
1.12% (64th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALMALINUX8-ASPNETCORETARGETINGPACK80-21743237
  • published27 Oct 2026
  • disclosed16 Jan 2025

Introduced: 16 Jan 2025

CVE-2024-11831  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:8 aspnetcore-targeting-pack-8.0 to version 0:8.0.12-1.el8_10 or higher.
This issue was patched in ALSA-2025:0381.

NVD Description

Note: Versions mentioned in the description apply only to the upstream aspnetcore-targeting-pack-8.0 package and not the aspnetcore-targeting-pack-8.0 package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 relevant fixed versions and status.

A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.

CVSS Base Scores

version 3.1