| <!--- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| # Reporting New Security Problems with Apache Johnzon |
| |
| The Apache Software Foundation takes a very active stance in eliminating security problems and denial of service attacks against Apache projects. |
| |
| We strongly encourage folks to report such problems to the [private security mailing list](http://www.apache.org/security/) first, before disclosing them in a public forum. |
| |
| Please note that the security mailing list should only be used for reporting undisclosed security vulnerabilities in Apache projects and managing the process of fixing such vulnerabilities. |
| We cannot accept regular bug reports or other queries at this address. All mail sent to this address that does not relate to an undisclosed security problem will be ignored. |
| |
| If you need to report a bug that isn't an undisclosed security vulnerability, please use the [bug reporting](https://issues.apache.org/jira/browse/JOHNZON) system. |
| |
| ###Questions about: |
| |
| * how to configure Johnzon securely |
| * if a vulnerability applies to your particular application |
| * obtaining further information on a published vulnerability |
| * availability of patches and/or new releases |
| |
| should be addressed to the [mailing list](http://johnzon.apache.org/mail-lists.html). |
| |
| The private security mailing address is: security (at) apache (dot) org |
| |
| ## BigInteger and Java |
| |
| JSON-P/JSON-B exposes API using `BigDecimal` and `BigInteger`. |
| The bridge between these two types is `BigDecimal#toBigInteger` which has a slow implementation in Java without careness or scale max validation. |
| |
| Johnzon does some sanity checks on this value but at some point we recommend you to stay away from these API and handle big numbers using `String` type and parse them yourself since you are the only ones knowing the correct functional and relevant validation of the scale before a instantiation. |
| |
| If you know you don't need such big types, prefer using plain primitives (or wrappers). |
| |