Skip to content

Fix potential XXE vulnerability - #20

Merged
lvca merged 1 commit into
ArcadeData:mainfrom
elegoff:fix-xml-vulnerability
Sep 2, 2021
Merged

Fix potential XXE vulnerability #20
lvca merged 1 commit into
ArcadeData:mainfrom
elegoff:fix-xml-vulnerability

Conversation

@elegoff

@elegoff elegoff commented Sep 2, 2021

Copy link
Copy Markdown

What does this PR do?
protect Java XML Parsers from XXE attacks by adding by adding JAXP Properties for External Access Restrictions

Motivation
prevent XXE attacks

Additional Notes
Inspired by SonarQube rule

Checklist
[X] I have run the build using mvn clean package command
[] My unit tests cover both failure and success scenarios

@lvca
lvca merged commit 7de1f4b into ArcadeData:main Sep 2, 2021
@lvca

lvca commented Sep 2, 2021

Copy link
Copy Markdown
Member

Thanks Eric, nice to see you on ArcadeDB!

@lvca lvca self-assigned this Sep 2, 2021
@lvca lvca added the security label Sep 2, 2021
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
mergify Bot added a commit that referenced this pull request Aug 18, 2026
…tes [skip ci]

Bumps the go-modules group with 2 updates in the /e2e-go directory: [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go) and [github.com/moby/sys/userns](https://github.com/moby/sys).
Updates `github.com/testcontainers/testcontainers-go` from 0.43.0 to 0.44.0
Release notes

*Sourced from [github.com/testcontainers/testcontainers-go's releases](https://github.com/testcontainers/testcontainers-go/releases).*

> v0.44.0
> -------
>
> What's Changed
> ==============
>
> 🔒 Security
> ----------
>
> * security: fix Dependabot alerts for grpc and OTel ([#3835](https://redirect.github.com/testcontainers/testcontainers-go/issues/3835)) [`@​mdelapenya`](https://github.com/mdelapenya)
>
> 🚀 Features
> ----------
>
> * feat: allow overriding the session ID ([#3051](https://redirect.github.com/testcontainers/testcontainers-go/issues/3051)) [`@​jcmfernandes`](https://github.com/jcmfernandes)
> * feat: add Azure SQL Edge module ([#3787](https://redirect.github.com/testcontainers/testcontainers-go/issues/3787)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add S3Mock module ([#3781](https://redirect.github.com/testcontainers/testcontainers-go/issues/3781)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Fake-GCS-Server module ([#3770](https://redirect.github.com/testcontainers/testcontainers-go/issues/3770)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Typesense module ([#3786](https://redirect.github.com/testcontainers/testcontainers-go/issues/3786)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Firebird module ([#3771](https://redirect.github.com/testcontainers/testcontainers-go/issues/3771)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add CouchDB module ([#3768](https://redirect.github.com/testcontainers/testcontainers-go/issues/3768)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Mosquitto module ([#3774](https://redirect.github.com/testcontainers/testcontainers-go/issues/3774)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Papercut-SMTP module ([#3777](https://redirect.github.com/testcontainers/testcontainers-go/issues/3777)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Timeplus module ([#3784](https://redirect.github.com/testcontainers/testcontainers-go/issues/3784)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Solr module ([#3783](https://redirect.github.com/testcontainers/testcontainers-go/issues/3783)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add SFTP module ([#3782](https://redirect.github.com/testcontainers/testcontainers-go/issues/3782)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add RavenDB module ([#3780](https://redirect.github.com/testcontainers/testcontainers-go/issues/3780)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add QuestDB module ([#3779](https://redirect.github.com/testcontainers/testcontainers-go/issues/3779)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Presto module ([#3778](https://redirect.github.com/testcontainers/testcontainers-go/issues/3778)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add OrientDB module ([#3776](https://redirect.github.com/testcontainers/testcontainers-go/issues/3776)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Nginx module ([#3775](https://redirect.github.com/testcontainers/testcontainers-go/issues/3775)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Mailpit module ([#3773](https://redirect.github.com/testcontainers/testcontainers-go/issues/3773)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add Trino module ([#3785](https://redirect.github.com/testcontainers/testcontainers-go/issues/3785)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add KurrentDB module ([#3772](https://redirect.github.com/testcontainers/testcontainers-go/issues/3772)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add CrateDB module ([#3769](https://redirect.github.com/testcontainers/testcontainers-go/issues/3769)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add ActiveMQ Classic module ([#3767](https://redirect.github.com/testcontainers/testcontainers-go/issues/3767)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * feat: add ability to chain WithConfigModifier, WithEndpointSettingsModifier and WithHostConfigModifier ([#3733](https://redirect.github.com/testcontainers/testcontainers-go/issues/3733)) [`@​LaurentGoderre`](https://github.com/LaurentGoderre)
>
> 🐛 Bug Fixes
> -----------
>
> * fix: escape the container name in the Docker name filter ([#3837](https://redirect.github.com/testcontainers/testcontainers-go/issues/3837)) [`@​jcmfernandes`](https://github.com/jcmfernandes)
> * fix: should print max information by default ([#3459](https://redirect.github.com/testcontainers/testcontainers-go/issues/3459)) [`@​strowk`](https://github.com/strowk)
> * fix: read exec exit code only after draining the output stream ([#3766](https://redirect.github.com/testcontainers/testcontainers-go/issues/3766)) [`@​dean-island`](https://github.com/dean-island)
> * fix: properly wait for Ryuk startup when reusing reaper ([#3761](https://redirect.github.com/testcontainers/testcontainers-go/issues/3761)) [`@​karsov`](https://github.com/karsov)
> * fix(openfga): remove playground wait from Run and up image to v1.18.0 ([#3745](https://redirect.github.com/testcontainers/testcontainers-go/issues/3745)) [`@​selvakannanjr`](https://github.com/selvakannanjr)
>
> 📖 Documentation
> ---------------
>
> * docs: fix incomplete CleanupContainer documentation ([#3826](https://redirect.github.com/testcontainers/testcontainers-go/issues/3826)) [`@​Hashim1999164`](https://github.com/Hashim1999164)
> * docs: fix typo in SkipIfProviderIsNotHealthy docstring ([#3764](https://redirect.github.com/testcontainers/testcontainers-go/issues/3764)) [`@​salandered`](https://github.com/salandered)
> * chore: update modules usage metrics (2026-07) ([#3759](https://redirect.github.com/testcontainers/testcontainers-go/issues/3759)) @[github-actions[bot]](https://github.com/apps/github-actions)
> * chore: update usage metrics (2026-07) ([#3757](https://redirect.github.com/testcontainers/testcontainers-go/issues/3757)) @[github-actions[bot]](https://github.com/apps/github-actions)
> * chore(metrics): usage metrics for modules ([#3737](https://redirect.github.com/testcontainers/testcontainers-go/issues/3737)) [`@​mdelapenya`](https://github.com/mdelapenya)
> * docs(site): add missing languages and reorder docs navigation ([#3735](https://redirect.github.com/testcontainers/testcontainers-go/issues/3735)) [`@​mdelapenya`](https://github.com/mdelapenya)
>
> 🧹 Housekeeping
> --------------

... (truncated)


Commits

* [`007bd6b`](testcontainers/testcontainers-go@007bd6b) chore: use new version (v0.44.0) in modules and examples
* [`6fdd2fd`](testcontainers/testcontainers-go@6fdd2fd) feat: allow overriding the session ID ([#3051](https://redirect.github.com/testcontainers/testcontainers-go/issues/3051))
* [`0cfd2f9`](testcontainers/testcontainers-go@0cfd2f9) chore(deps): bump slackapi/slack-github-action from 3.0.3 to 4.0.0 ([#3788](https://redirect.github.com/testcontainers/testcontainers-go/issues/3788))
* [`5dda4cd`](testcontainers/testcontainers-go@5dda4cd) chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 ([#3789](https://redirect.github.com/testcontainers/testcontainers-go/issues/3789))
* [`8cfecf9`](testcontainers/testcontainers-go@8cfecf9) chore(deps): bump docker/setup-docker-action from 5.1.0 to 5.4.0 ([#3790](https://redirect.github.com/testcontainers/testcontainers-go/issues/3790))
* [`1d054f6`](testcontainers/testcontainers-go@1d054f6) fix: escape the container name in the Docker name filter ([#3837](https://redirect.github.com/testcontainers/testcontainers-go/issues/3837))
* [`2f869d6`](testcontainers/testcontainers-go@2f869d6) fix: should print max information by default ([#3459](https://redirect.github.com/testcontainers/testcontainers-go/issues/3459))
* [`62941e8`](testcontainers/testcontainers-go@62941e8) chore(azurite): tidy module dependencies ([#3838](https://redirect.github.com/testcontainers/testcontainers-go/issues/3838))
* [`632ee7b`](testcontainers/testcontainers-go@632ee7b) security: fix Dependabot alerts for grpc and OTel ([#3835](https://redirect.github.com/testcontainers/testcontainers-go/issues/3835))
* [`caa68c6`](testcontainers/testcontainers-go@caa68c6) chore(deps): bump github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from 1...
* Additional commits viewable in [compare view](testcontainers/testcontainers-go@v0.43.0...v0.44.0)
  
Updates `github.com/lufia/plan9stats` from 0.0.0-20211012122336-39d0f177ccd0 to 0.0.0-20260330125221-c963978e514e
Commits

* See full diff in [compare view](https://github.com/lufia/plan9stats/commits)
  
Updates `github.com/moby/sys/userns` from 0.1.0 to 0.2.0
Release notes

*Sourced from [github.com/moby/sys/userns's releases](https://github.com/moby/sys/releases).*

> mountinfo v0.2.0
> ----------------
>
> Bug fixes:
>
> * Fix path unescaping for paths with double quotes ([#16](https://redirect.github.com/moby/sys/issues/16))
>
> Improvements:
>
> * `Mounted`: speed up by adding fast paths using `openat2` (Linux-only, [#29](https://redirect.github.com/moby/sys/issues/29)) and `stat` ([#20](https://redirect.github.com/moby/sys/issues/20))
> * `Mounted`: relax path requirements (allow relative, non-cleaned paths, symlinks) (fixes [#27](https://redirect.github.com/moby/sys/issues/27))
> * Unescape `fstype` and `source` fields ([#16](https://redirect.github.com/moby/sys/issues/16))
> * Documentation improvements ([#15](https://redirect.github.com/moby/sys/issues/15))
>
> Testing/CI:
>
> * Unit tests: exclude darwin ([#13](https://redirect.github.com/moby/sys/issues/13))
> * CI: run tests under Fedora 32 to test openat2 ([#29](https://redirect.github.com/moby/sys/issues/29))
> * `TestGetMounts`: fix for Ubuntu build system ([#18](https://redirect.github.com/moby/sys/issues/18))
> * Makefile: fix ignoring test failures ([#19](https://redirect.github.com/moby/sys/issues/19))
> * CI: add cross build ([#23](https://redirect.github.com/moby/sys/issues/23))
>
> Thanks to:
>
> * Aleksa Sarai
> * Shengjing Zhu
>
> mount v0.2.0
> ------------
>
> Breaking changes:
>
> * Remove stub-implementations for Windows for `Mount()`, `Unmount()`,
>   `RecursiveUnmount()`, `MergeTmpfsOptions()` ([#31](https://redirect.github.com/moby/sys/issues/31)[1](https://redirect.github.com/moby/sys/pull/31))
>
> Fixes and improvements:
>
> * `go.mod`: update github.com/moby/sys/mountinfo to [v0.4.0](https://github.com/moby/sys/releases/tag/mountinfo%2Fv0.4.0) ([#44](https://redirect.github.com/moby/sys/issues/44)[3](https://redirect.github.com/moby/sys/pull/44), [#56](https://redirect.github.com/moby/sys/issues/56)[4](https://redirect.github.com/moby/sys/pull/56))
> * use `MNT_*` flags from golang.org/x/sys/unix on freebsd ([#36](https://redirect.github.com/moby/sys/issues/36)[5](https://redirect.github.com/moby/sys/pull/36))
> * add support for OpenBSD in addition to FreeBSD ([#32](https://redirect.github.com/moby/sys/issues/32)[6](https://redirect.github.com/moby/sys/pull/32))
> * fix package overview documentation not showing ([#43](https://redirect.github.com/moby/sys/issues/43)[7](https://redirect.github.com/moby/sys/pull/43))
> * `RecursiveUnmount()`: minor improvements ([#46](https://redirect.github.com/moby/sys/issues/46)[8](https://redirect.github.com/moby/sys/pull/46))
>
> Thanks to:
>
> * Tobias Klauser
>
> symlink/v0.2.0
> --------------
>
> What's Changed
> --------------

... (truncated)


Commits

* [`86870e7`](moby/sys@86870e7) Merge pull request [#140](https://redirect.github.com/moby/sys/issues/140) from thaJeztah/integrate\_libcontainer\_userns
* [`5cd502c`](moby/sys@5cd502c) user: require go1.21 or higher
* [`a40602b`](moby/sys@a40602b) user/userns: add godoc for package
* [`bc3a8a5`](moby/sys@bc3a8a5) libct/userns: implement RunningInUserNS with sync.OnceValue
* [`bc0de32`](moby/sys@bc0de32) libct/userns: make fuzzer Linux-only, and remove stub for uidMapInUserNS
* [`333fe31`](moby/sys@333fe31) libct/userns: change RunningInUserNS to a wrapper instead of an alias
* [`bb72464`](moby/sys@bb72464) remove pre-go1.17 build-tags
* [`87e38c8`](moby/sys@87e38c8) libcontainer/userns: simplify, and separate from "user" package.
* [`b19e084`](moby/sys@b19e084) \*: add go-1.17+ go:build tags
* [`db243e2`](moby/sys@db243e2) \*: rm redundant linux build tag
* Additional commits viewable in [compare view](moby/sys@user/v0.1.0...user/v0.2.0)
  
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore  major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore  minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore  ` will remove the ignore condition of the specified dependency and ignore conditions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants