Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7d9f380
Bump express in /contrib/views/wfmanager/src/main/resources/ui
dependabot[bot] Aug 5, 2025
7facabc
Merge pull request #1 from AndresMaqueo/dependabot/npm_and_yarn/contr…
AndresMaqueo Aug 11, 2025
ab6ed8c
Merge branch 'apache:trunk' into trunk
AndresMaqueo Sep 18, 2025
bc59e13
fix: contrib/ambari-scom/metrics-sink/pom.xml to reduce vulnerabilities
snyk-bot Nov 7, 2025
deb3af2
fix: contrib/views/wfmanager/src/main/resources/ui/externaladdons/hdf…
snyk-bot Nov 25, 2025
6466483
fix: contrib/views/commons/src/main/resources/ui/hdfs-directory-viewe…
snyk-bot Nov 25, 2025
2208747
Merge pull request #20 from AndresMaqueo/snyk-fix-519150a3e101c6487a2…
AndresMaqueo Nov 27, 2025
e080f70
Bump com.thoughtworks.xstream:xstream
dependabot[bot] Nov 27, 2025
e9586b7
Merge pull request #22 from AndresMaqueo/dependabot/maven/contrib/amb…
AndresMaqueo Nov 27, 2025
c438331
Merge pull request #19 from AndresMaqueo/snyk-fix-bcb817bf3685fa49e1f…
AndresMaqueo Nov 27, 2025
6b88517
Merge pull request #9 from AndresMaqueo/snyk-fix-a8500577a27b2fb5ff08…
AndresMaqueo Nov 27, 2025
5b09507
fix: ambari-agent/pom.xml to reduce vulnerabilities
snyk-bot Nov 28, 2025
b89b866
Merge pull request #25 from AndresMaqueo/snyk-fix-90bd5e89d8a6e8fccc6…
AndresMaqueo Nov 29, 2025
9107ef8
Merge branch 'apache:trunk' into trunk
AndresMaqueo Dec 27, 2025
bf5074d
Bump org.springframework:spring-beans
dependabot[bot] Dec 30, 2025
945422b
Merge pull request #26 from AndresMaqueo/dependabot/maven/ambari-view…
AndresMaqueo Dec 30, 2025
8880617
Potential fix for code scanning alert no. 146: Resolving XML external…
AndresMaqueo Dec 31, 2025
ce020ab
Merge pull request #27 from AndresMaqueo/alert-autofix-146
AndresMaqueo Dec 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ambari-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<commons-cli.version>1.5.0</commons-cli.version>
<commons-collections.version>3.2.2</commons-collections.version>
<commons-configuration2.version>2.8.0</commons-configuration2.version>
<commons-configuration2.version>2.13.0</commons-configuration2.version>
<commons-lang.version>2.6</commons-lang.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
<commons-io.version>2.14.0</commons-io.version>
Expand Down Expand Up @@ -821,7 +821,7 @@
<executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
<executable.shell>sh</executable.shell>
<fileextension.shell>sh</fileextension.shell>
<fileextension.dot.shell-default></fileextension.dot.shell-default>
<fileextension.dot.shell-default/>
<path.python.1>${project.basedir}/../ambari-common/src/main/python:${project.basedir}/../ambari-agent/src/main/python:${project.basedir}/../ambari-common/src/main/python/ambari_jinja2:${project.basedir}/../ambari-agent/src/main/python:${project.basedir}/../ambari-common/src/main/python/ambari_commons:${project.basedir}/../ambari-common/src/test/python:${project.basedir}/src/main/python:${project.basedir}/src/main/python/ambari_agent:${project.basedir}/src/main/python/resource_management:${project.basedir}/src/test/python:${project.basedir}/src/test/python/ambari_agent:${project.basedir}/src/test/python/resource_management:${project.basedir}/../ambari-server/src/test/python:${project.basedir}/../ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/files</path.python.1>
</properties>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,17 @@ public static VersionDefinitionXml load(String xml) throws Exception {
private static VersionDefinitionXml load(InputStream stream) throws Exception {

XMLInputFactory xmlFactory = XMLInputFactory.newInstance();
// Harden the XMLInputFactory against XXE
try {
xmlFactory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
} catch (IllegalArgumentException ignored) {
// Property not supported by this implementation; ignore.
}
try {
xmlFactory.setProperty("javax.xml.stream.isSupportingExternalEntities", Boolean.FALSE);
} catch (IllegalArgumentException ignored) {
// Property not supported by this implementation; ignore.
}
XMLStreamReader xmlReader = xmlFactory.createXMLStreamReader(stream);

xmlReader.nextTag();
Expand All @@ -602,6 +613,22 @@ private static VersionDefinitionXml load(InputStream stream) throws Exception {
Unmarshaller unmarshaller = ctx.createUnmarshaller();

SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
// Harden the SchemaFactory against XXE and external resource loading
try {
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
} catch (Exception ignored) {
// Feature not supported; ignore.
}
try {
factory.setProperty("http://apache.org/xml/properties/accessExternalDTD", "");
} catch (IllegalArgumentException ignored) {
// Property not supported by this implementation; ignore.
}
try {
factory.setProperty("http://apache.org/xml/properties/accessExternalSchema", "");
} catch (IllegalArgumentException ignored) {
// Property not supported by this implementation; ignore.
}
Schema schema = factory.newSchema(new StreamSource(xsdStream));
unmarshaller.setSchema(schema);

Expand Down
2 changes: 1 addition & 1 deletion ambari-views/examples/phone-list-upgrade-view/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.1.2.RELEASE</version>
<version>5.2.22.RELEASE</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion contrib/ambari-scom/ambari-scom-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.7</version>
<version>1.4.21</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion contrib/ambari-scom/metrics-sink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.2.0</version>
<version>2.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ember-cli-app-version": "^1.0.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-font-awesome": "1.5.0",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars": "^7.0.0",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.1.0",
Expand All @@ -46,7 +46,7 @@
],
"dependencies": {
"ember-cli-babel": "^5.1.5",
"ember-cli-htmlbars": "^1.0.1"
"ember-cli-htmlbars": "^7.0.0"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ember-cli-app-version": "^1.0.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-font-awesome": "1.5.0",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars": "^7.0.0",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.1.0",
Expand All @@ -46,7 +46,7 @@
],
"dependencies": {
"ember-cli-babel": "^5.1.5",
"ember-cli-htmlbars": "^1.0.1"
"ember-cli-htmlbars": "^7.0.0"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down
Loading