Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ShauryaChauhan1411
Copy link
Contributor

What is the purpose of the change?

This PR adds a unit test for YamlCodec to ensure it properly rejects malicious YAML payloads, preventing potential RCE vulnerabilities (CVE-2022-1471).

Brief changelog

  • Created YamlCodecTest.java.
  • Added testYamlSecurityVulnerability to verify security filtering.
  • Ensured code compliance with Apache Dubbo formatting standards.

Verifying this change

  • Executed 'mvn clean install' locally and the build was successful.

@ShauryaChauhan1411
Copy link
Contributor Author

Hi @oxsean, I've added the security unit test for YamlCodec to address #13799. I've also ensured formatting compliance with spotless. Looking forward to your review!

@zrlw
Copy link
Contributor

zrlw commented Jan 4, 2026

file mode should not be modified.

@zrlw zrlw closed this Jan 4, 2026
@ShauryaChauhan1411
Copy link
Contributor Author

Hi @zrlw, sorry about the file mode issue. I am opening a new clean PR with core.fileMode set to false to ensure permissions remain unchanged. Thank you for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants