{"id":"GHSA-7mqj-xgf8-p59v","summary":"Apache NiFi Cross-site Scripting vulnerability","details":"Apache NiFi 1.10.0 through 1.27.0 and 2.0.0-M1 through 2.0.0-M3 support a description field for Parameters in a Parameter Context configuration that is vulnerable to cross-site scripting. An authenticated user, authorized to configure a Parameter Context, can enter arbitrary JavaScript code, which the client browser will execute within the session context of the authenticated user. Upgrading to Apache NiFi 1.28.0 or 2.0.0-M4 is the recommended mitigation.","aliases":["BIT-nifi-2024-45477","CVE-2024-45477"],"modified":"2026-09-04T11:55:32.861143936Z","published":"2024-10-29T09:30:51Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-10-29T21:33:09Z","nvd_published_at":"2024-10-29T09:15:07Z","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45477"},{"type":"WEB","url":"https://github.com/apache/nifi/pull/9195"},{"type":"WEB","url":"https://github.com/apache/nifi/commit/153c87a7daaeebea9b119066285b840ea4056e09"},{"type":"PACKAGE","url":"https://github.com/apache/nifi"},{"type":"WEB","url":"https://github.com/apache/nifi/blob/rel/nifi-1.27.0/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-parameter-contexts.js#L2197"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/NIFI-13675"},{"type":"WEB","url":"https://lists.apache.org/thread/shdv0tw9hggj7tx9pl7g93mgok2lwbj9"},{"type":"WEB","url":"https://nifi.apache.org/documentation/security/#CVE-2024-45477"}],"affected":[{"package":{"name":"org.apache.nifi:nifi-web-ui","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-web-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.10.0"},{"fixed":"1.28.0"}]}],"versions":["1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.20.0","1.21.0","1.22.0","1.23.0","1.23.1","1.23.2","1.24.0","1.25.0","1.26.0","1.27.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-7mqj-xgf8-p59v/GHSA-7mqj-xgf8-p59v.json"}},{"package":{"name":"org.apache.nifi:nifi-web-ui","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-web-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0-M1"},{"fixed":"2.0.0-M4"}]}],"versions":["2.0.0-M1","2.0.0-M2","2.0.0-M3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-7mqj-xgf8-p59v/GHSA-7mqj-xgf8-p59v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}